Part Number Hot Search : 
VCH16 MIC23156 43650 CONTRO HEA9230 MR5760 ON2721 2018TS
Product Description
Full Text Search
 

To Download W6691 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 W6691 ISDN S/T Interface Transceiver Data Sheet
The information described in this document is the exclusive intellectual property of Winbond Electronics Corp and shall not be reproduced without permission from Winbond. Winbond is providing this document only for reference purposes for W6691-based system design. Winbond assumes no responsibility for errors or omissions. All data and specifications are subject to change without notice.
-1-
Publication Release Date: June 11, 2003 Revision 1.5
W6691
Table of Contents1. 2. 3. 4. 5. 6. 7. GENERAL DESCRIPTION ......................................................................................................... 8 FEATURES ................................................................................................................................. 8 PIN CONFIGURATIONS ............................................................................................................ 9 PIN DESCRIPTION................................................................................................................... 11 SYSTEM DIAGRAM AND APPLICATIONS.............................................................................. 14 BLOCK DIAGRAM .................................................................................................................... 16 FUNCTIONAL DESCRIPTIONS ............................................................................................... 17 7.1 Main Block Functions.................................................................................................... 17
7.1.1 7.1.2 Internal Block Function Description ................................................................................17 Interface and Operating Modes ......................................................................................18 S/T Interface Transmitter/Receiver.................................................................................18 Receiver Clock Recovery And Timing Generation..........................................................23 Layer 1 Activation/Deactivation ......................................................................................23 Layer 1 Activation /Deactivation in LT-S Mode ...............................................................29 D Channel Access Control..............................................................................................32 Frame Alignment ............................................................................................................33 Multiframe Synchronization ............................................................................................34 Test Functions ................................................................................................................36
7.2
Layer 1 Function Description........................................................................................ 18
7.2.1 7.2.2 7.2.3 7.2.4 7.2.5 7.2.6 7.2.7 7.2.8
7.3 7.4 7.5
B Channel Switching..................................................................................................... 37 PCM Port ...................................................................................................................... 38 Channel HDLC Controller ............................................................................................. 38
7.5.1 7.5.2 7.5.3 D Channel Message Transfer Modes .............................................................................39 Reception of Frames in D Channel.................................................................................40 Transmission of Frames in D Channel ...........................................................................41 GCI Mode C/I Channel Handling ....................................................................................44 GCI Mode Monitor Channel Handling .............................................................................44
7.6
GCI Mode Serial Interface Bus ..................................................................................... 41
7.6.1 7.6.2
7.7 8. 8.1 8.2 8.3 8.4 8.5 8.6
8-bit Microprocessor Interface ...................................................................................... 45 D Channel HDLC Controller Register Address Map .................................................... 46 GCI Bus Control Register Address Map....................................................................... 47 Miscellaneous Register Address Map .......................................................................... 48 D Channel HDLC Controller Register Memory Map..................................................... 49 GCI Bus Register Memory Map.................................................................................... 50 Miscellaneous Register Memory Map .......................................................................... 51 -2-
REGISTER DESRCRIPTIONS ................................................................................................. 46
W6691
8.7 D Channel HDLC Controller Register Description........................................................ 51
8.7.1 8.7.2 8.7.3 8.7.4 8.7.5 8.7.6 8.7.7 8.7.8 8.7.9 8.7.10 8.7.11 8.7.12 8.7.13 8.7.14 8.7.15 8.7.16 8.7.17 8.7.18 D_ch receive FIFO D_RFIFO Read Address 00H .......................................................51 D_ch transmit FIFO D_XFIFO Write Address 01H.......................................................51 D_ch command register D_CMDR Write Address 02H ..................................................51 D_ch Mode Register D_MODE Read/Write Address 03H............................................53 Interrupt Status Register ISTA Read_clear Address 04H ........................................54 Interrupt Mask Register IMASK Read/Write Address 05H..............................................55 D_ch Extended Interrupt Register D_EXIR Read_clear Address 06H .........................55 D_ch Extended Interrupt Mask Register D_EXIM Read/Write Address 07H ...........56 D_ch Transmitter Status Register D_XSTA Read Address 0AH..................................56 D_ch Receive Status Register D_RSTA Read Address 0BH ..................................56 D_ch SAPI Address Mask D_SAM Read/Write Address 0EH....................................57 D_ch SAPI1 Register D_SAP1 Read/Write Address 0FH..........................................58 D_ch SAPI2 Register D_SAP2 Read/Write Address 10H ..........................................58 D_ch TEI Address Mask D_TAM Read/Write Address 11H .........................................58 D_ch TEI1 Register D_TEI1 Read/Write Address 12H ..............................................58 D_ch TEI2 Register D_TEI2 Read/Write Address 13H ..............................................59 D_ch Receive Frame Byte Count High D_RBCH Read D_ch Receive Frame Byte Count Low D_RBCL Channel Selection Register CSEL Read/Write Address 16H........................59 Read Address 17H......................59 Address 18H ................................60 Address 1BH .....................60
8.8
GCI Bus Register Description....................................................................................... 60
8.8.1 8.8.2 8.8.3 8.8.4 8.8.5 8.8.6 8.8.7 8.8.8 8.8.9 8.8.10 8.8.11 8.8.12 8.8.13 8.8.14 8.8.15 8.8.16 8.8.17 8.8.18 Command/Indication Receive Register CIR Read Address 1AH .................................60 Command/Indication Transmit Register CIX Read/Write S/Q Channel Receive Register SQR Read Address 1CH ..............................................61 S/Q Channel Transmit Register SQX Read/Write Address 1DH..................................61 Monitor Receive Channel 0 MO0R Read Address 20H ..........................................61 Monitor Transmit Channel 0 MO0X Read/Write Address 21H...................................62 Monitor Channel 0 Interrupt Register MO0I GCI Mode Control/Status Register Read_clear Address 22H ....................62 Monitor Channel 0 Control Register MO0C Read/Write Address 23H.......................62 GCR Read Address 26H ...............................63 Read/Write Read_clear Address 28H ...........64 Address 29H ................64 Monitor Receive Channel 1 Register MO1R Read Address 27H ...............................63 Monitor Transmit Channel 1 Register MO1X Monitor Channel 1 Interrupt Register MO1I GCI CI1 Indication Register CI1R GCI CI1 Command Register CI1X
Monitor Channel 1 Control Register MO1C Read/Write Address 2AH.......................64 Read Address 31H ........................................65 Read/Write Address 32H ................................65
GCI Extended Interrupt Register GCI_EXIR Read_clear Address 34H ........................65 GCI Extended Interrupt Mask Register GCI_EXIM Read/Write Address 35H.......66
-3-
Publication Release Date: June 11, 2003 Revision 1.5
W6691
8.9 Miscellaneous Register................................................................................................. 66
8.9.1 8.9.2 8.9.3 8.9.4 8.9.5 8.9.6 8.9.7 8.9.8 Timer 1 Register TIMR1 Read/Write Address 38H ......................................................66 Timer 2 TIMR2 Read/ Write Address 39H ..............................................................67 Peripheral Control Register PCR Read/Write Address 3AH ...........................................67 Peripheral I/O Data Register PIODR Read/Write Address 3BH ................................68 SFCTL Switch Functional Control Register Read/Write Address 3CH ...........................69 ACTL1 Auxiliary Control Register 1 Read/Write Address 3DH.....................................70 ACTL2 Auxiliary ACTL3 Control Register2 Read/Write Address 3EH .............................70 Auxiliary Control Register 3 Read/Write Address 3FH ...................................71
8.10 8.11
B1 Channel HDLC Controller Register Address MAP.................................................. 71 B1 Channel HDLC Controller Register Memory Map................................................... 72
8.11.1 8.11.2 8.11.3 8.11.4 8.11.5 8.11.6 8.11.7 8.11.8 8.11.9 8.11.10 8.11.11 8.11.12 8.11.13 8.11.14 B1_ch receive FIFO B1_RFIFO Read Address 50H.............................................72 B1_ch transmit FIFO B1_XFIFO Write Address 51H ............................................72 B1_ch command register B1_CMDR Read/Write Address 53H ...................................73 B1_ch Mode Register B1_MODE Read/Write Address 54H ......................................74 B1_ch Extended Interrupt Register B1_EXIR Read_clear Address 56H ......................75 B1_ch Extended Interrupt Mask Register B1_EXIM Read/Write Address 57H .....76 B1_ch Status Register B1_STAR Read Address 58H ..................................76 B1_ch Address Mask Register 1 B1_ADM1 Read/Write Address 59H ......................77 B1_ch Address Mask Register 2 B1_ADM2 Read/Write Address 5AH ........................77 B1_ch Address Register 1 B1_ADR1 Read/Write Address 5BH..............................78 B1_ch Address Register 2 B1_ADR2 Read/Write Address 5CH..............................78 B1_ch Receive Frame Byte Count Low B1_RBCL Read Address 5DH ...................78 B1_ch Receive Frame Byte Count High B1_RBCH Read Address 5EH..................78 B1_ch Transmit Idle Pattern B1_IDLE Read/Write Address 5FH ...............................79
8.12 8.13 9. 9.1 9.2 9.3 9.4
B2 Channel HDLC Controller Register Address Map .................................................. 80 B2 Channel HDLC Controller Register Memory Map................................................... 81 Absolute Maximum Rating............................................................................................ 82 Power Supply................................................................................................................ 82 DC Characteristics........................................................................................................ 82 Preliminary Switching Characteristics .......................................................................... 84
9.4.1 9.4.2 9.4.3 PCM Interface Timing.....................................................................................................84 Detailed PCM Tming ......................................................................................................85 8-bit Microprocessor Timing ...........................................................................................86
ELECTRICAL CHARACTERISTICS......................................................................................... 82
9.5 10. 11.
AC Timing Test Conditions ........................................................................................... 89
ORDERING INFORMATION .................................................................................................... 89 PACKAGE DIMENSIONS ......................................................................................................... 90
-4-
W6691
List of FiguresFig.3.1 W6691 Pin Configuration - Intel Bus Mode ................................................................................. 9 Fig.3.2 W6691 Pin Configuration - Motorola Bus Mode....................................................................... 10 Fig.5.1 ISDN Internet Passive S-card with Two POTS Connections.................................................... 14 Fig.5.2 ISDN PAXB Application............................................................................................................. 15 Fig.6.1 W6691 Functional Block Diagram............................................................................................. 16 Fig.7.1 Frame Structure at S/T Interface............................................................................................... 19 Fig.7.2 W6691 Wiring Configuration in TE Applications ....................................................................... 20 Fig.7.3 External Transmitter Circuitry.................................................................................................... 21 Fig.7.4 External Receiver Circuitry........................................................................................................ 22 Fig.7.5 Layer 1 Activation/Deaction State Diagram - TE/LT-T Normal Mode ...................................... 27 Fig.7.6 Layer 1 Activation/Deactivation State Diagram - TE/LT-T SPECIAL Mode ............................. 28 Fig.7.7 Layer 1 Activation/Deactivation State Diagram in LT-S ............................................................ 31 Fig.7.9 SSP and SCP Test Signals ....................................................................................................... 37 Fig.7.10 GCI TE Mode Channel Structure ............................................................................................ 42 Fig.7.11 GCI Non -Terminal Mode Channel Structure ......................................................................... 43
-5-
Publication Release Date: June 11, 2003 Revision 1.5
W6691
List of TablesTABLE 7.1 OUTPUT PHASE DELAY COMPENSATION TABLE ........................................................ 23 TABLE 7.2 LAYER 1 COMMAND CODES ........................................................................................... 25 TABLE 7.3 LAYER 1 INDICATION CODES ......................................................................................... 26 TABLE 7.4 LAYER 1 COMMAND CODES ........................................................................................... 29 TABLE 7.5 LAYER 1 INDICATION CODES ......................................................................................... 30 TABLE 7.8 D PRIORITY CLASSES...................................................................................................... 32 TABLE 7.9 D PRIORITY COMMANDS/INDICATIONS ........................................................................ 32 TABLE 7.10 MULTIFRAME STRUCTURE IN S/T INTERFACE .......................................................... 35 TABLE 8.1 D CHANNEL HDLC CONTROLLER REGISTER ADDRESS MAP.................................... 46 TABLE 8.2 GCI BUS CONTROL REGISTER ADDRESS MAP............................................................ 47 TABLE 8.3 MISCELLANEOUS REGISTER ADDRESS MAP .............................................................. 48 TABLE 8.4 D CHANNEL HDLC CONTROLLER REGISTER MEMORY MAP..................................... 49 TABLE 8.5 GCI BUS REGISTER MEMORY MAP................................................................................ 50 TABLE 8.6 MISCELLANEOUS REGISTER MEMORY MAP................................................................ 51 TABLE 8.7 B1 CHANNEL HDLC CONTROLLER REGISTER ADDRESS MAP.................................. 71 TABLE 8.8 B1 CHANNEL HDLC CONTROLLER REGISTER MEMORY MAP ................................... 72 TABLE 8.9 B2 CHANNEL HDLC CONTROLLER REGISTER ADDRESS MAP.................................. 80 TABLE 8.10 B2 CHANNEL HDLC CONTROLLER REGISTER MEMORY MAP ................................. 81
-6-
W6691
REVISION HISTORY
VERSION DATE DESCRIPTION
1.0
Jan 2001
The first version is edited. W6691 Pin Configuration -- Intel Bus mode is modified on page11. W6691 Pin Configuration - Motorola Bus Mode is modified on page 12 Pin Description is modified on page 13.
1.1
Sep 2001
The chapter 7.1.2 Interface and Operating Mode description is changed on page 20. The transformer ratio 1:1 is changed to 2:1 on Fig 7.3 and 7.4 page 23 and page 24. VDD and VDDA (output) described are error description on page 15. It is corrected as VDD = 3.3V 5%. VDDA is 5.0V output signal for chip internal use. It should be connected with 2.2uF capacitor for supplying stable voltage. Add CNC and CPC pin description on page 15. The CNC pin and CPC pin should be connected with 2.2uF for supplying stable voltage. The Operating Supply Volatge VDD = 5V 5 % in the Capacitances description is error on page 97. It is corrected as 3.3V 5%. The VDD = 5V 5 % in chapter 9.2 power supply section should be corrected as 3.3V 5 %.
1.2
Mar 2003
1.3
Mar 2003
The VDD = 5V 5 % in chapter 9.3 DC characteristic section should be corrected as 3.3V 5 %. The VDD = 5V 5 % in chapter 9.5 AC Timing Test Conditions should be corrected as 3.3V 5 %. The VDDA (output) described is error description on page 15. It is 5.0V 5%output for monitoring. (Notice the 5.0V is generated from W6691 internal power pump) Analog power supply current: activated section VDD = 5.0 V condition described on page 100 is error. It is corrected as VDD = 3.3V The XTAL2 is pin 41 described on table of page 16. It is a mistake. It is corrected as pin39.
1.4
May 2003
1.5
June 11, 2003
The pin20 decribed on page 14 is VDD. It is mistake. It is corrected as WR#. Pin37 CLKT is not described in data sheet. The description is added on page 15. MBIT shown page 13 and 14 is omitted. W6691 doesn't provide the MBIT function.
-7-
Publication Release Date: June 11, 2003 Revision 1.5
W6691
1. GENERAL DESCRIPTION
W6691 consists of one D channel HDLC controller and two B HDLC controller channel access. The HDLC controller facilitates efficient access to signaling, data and voice services. It provides multiplex/non- mutiplexe 8- bit microprocessor interface. The interface is selected by external MBS selection. In addition, W6691 can be operated in TE, LT-S and LT-T mode programmed by external pin. In TE mode, W6691 provides PCM bus or GCI bus to connect with CODEC. In LT mode, it can used in NT2 application. W6691 also provides various B channel switching function among PCM, GCI and Layer2. It adopts 3.3V process to manufacture. The FIFO size of D channel is 64 byte. The FIFO size of two B channel are 128bytes. Two extended external interrupt is designed for peripheral interrupt saving extra interrupt circuit design. One layer activation indication output can be programmed by microprocessor control or W6691 chip internal control. The DPLL circuit is design in chip to generate the DCL and FSC signal for NT2 application. It can eliminate extra DPLL circuit on board. In order to save a lot of crystal on board, W6691 can provide 7.68MHz OSC signal for other chip needs the clock in TE or NT2 application.
2. FEATURES
* Full Duplex 2B+D S/T interface transceiver compliant with ITU I.430 Recommendation * One D channel HDLC controller - Maskable address recognition - Transparent (HDLC) mode - FIFO buffer (2 * 64) * Two B channel HDLC controller - Maskable address recognition - Transparent (HDLC) mode - FIFO buffer (2 * 128) Various B channel switching capabilities and PCM intercom Two PCM CODEC interfaces for speech and POTS application GCI interface connects with other peripheral device in TE, LT-S and LT-T mode. Multi-frame synchronization 8-bits Intel mode or Motorola mode interface accesses B channel and Command/Indication channel. The timing clock recovery depends on operating mode. DPLL circuit designed in chip for NT2 application. Four kind of the extended interrupt trigger mode. Two kind of output interrupt polarity selection can be programmed. (Positive level and negative Level) Added reset signal to reset other chip. Loop back function for testing.
* * * * * * * * * * *
* Layer1 Activate Indication Output can be connected to LED -8-
W6691
* * * * * Two of programmable timer 3.3 Volt power supply 3.3 Volt output; Maximum Input is 5.0Volt Advanced CMOS technology Packaged in 64 pin LQFP
3. PIN CONFIGURATIONS
C P C
C N C
S X 2
S X 1
V D D A
S R 2
S R 1
V S S A
X T A L 1
X T A L 2
T O U T 2
C K L T
V D D
V S S
F S C O
D C L O
VDD VSS C16.384 MBS PFCK2 PFCK1
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 1
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33 32 31 30 29 28 27
M1
M0 AD0 AD1 AD2 AD3 AD4 AD5 AD6 AD7 VDD VSS WR#
PBCK PTXD PRXD VDD VSS DU DD
ISDN S/T Interface Access Controller W6691
26 25 24 23 22 21 20 19 18 17 12 13 14 15 16
FSC DCL INT#
2
3
4
5
6
7
8
9
10
11
C P
T E S P T
R S T #
V D D
V S S
A C T L 1 S
O S C 7 6 8
R D #
A L E
C S #
Fig.3.1 W6691 Pin Configuration - Intel Bus Mode
-9-
Publication Release Date: June 11, 2003 Revision 1.5
W6691
Pin Confugurations, continued
C P C
C N C
S X 2
S X 1
V D D A
S R 2
S R 1
V S S A
X T A L 1
X T A L 2
T O U T 2
C K L T
V D D
V S S
F S C O
D C L O
VDD VSS C16.384 MBS PFCK2 PFCK1
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 1
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33 32 31 30 29 28 27
M1
M0 D0 D1 D2 D3 D4 D5 D6 D7 VDD VSS DS# A0 A1 A2
PBCK PTXD PRXD VDD VSS DU DD
ISDN S/T Interface Access Controller W6691
26 25 24 23 22 21 20 19 18 17 12 13 14 15 16
FSC DCL INT#
2
3
4
5
6
7
8
9
10
11
C P
T E S P T
R S T #
V D D
V S S
A C T L 1 S
O S C 7 6 8
R W
A L E
C S #
A 7
A 6
A 5
A 4
A 3
Fig.3.2 W6691 Pin Configuration - Motorola Bus Mode
- 10 -
W6691
4. PIN DESCRIPTION
Table 4.1 W6691 pin descriptions
Note: The suffix "#" indicates an active LOW signal. In Intel or Motorola bus mode, all unspecified pins must be left unconnected.
PIN NAME
PIN NO.
TYPE
FUNCTIONS
Intel Bus Mode (Enabled when MBS = HIGH) MBS AD7-0 CS# ALE RD# WR# RST# INT# 52 23, 24, 25, 26, 27, 28, 29, 30 11 10 9 20 3 64 I I/O I I I I I O Microprocessor bus selector (MBS). This pin must be pulled to HIGH. Multiplexed address and data bus. During the address phase, AD7-0 contains 8-bit physical address. During the data phase, AD7-AD0 contains data. Chip select. Address Latch Enable. Used to latch addresses. Read. Write. Reset. Interrupt. The interrupt trigger level can be programmable by ACTL2:INTOL. It provides two types of interrupt trigger level including low level and high level. Microprocessor bus selector (MBS). This pin must be pulled to LOW. Data bus. Address bus. Chip select. Data strobe. Read/Write identify. HIGH is for read and LOW is for write. Reset. Interrupt. The interrupt trigger level can be programmable by ACTL2:INTOL. It provides two types of interrupt trigger level including low level and high level. GCI Bus GCI Bus Data Clock: the frequency is twice data rate TE mode: 1.536 MHz. LT-T/LT-S mode: 4.096 MHz. NT mode: 512 KHz It needs external pull-up.
Motorola Bus Mode (Enabled when MBS = LOW) MBS D7-D0 A7-A0 CS# DS# RW RST# INT# 52 23, 24, 25, 26, 27, 28, 29, 30 12, 13, 14, 15, 16, 17, 18, 19 11 20 9 3 64 I I/O I I I I I O
DCL
63
I/O
- 11 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
PIN NAME
PIN NO.
TYPE
FUNCTIONS
FSC DD DU CP/BCL FSCO DCLO C16.384
62 61 60 1 34 33 51
I/O I/O I/O O O O I
GCI Bus Frame Synchronization Clock: 8 KHz. It needs external pull-up. GCI Bus Data Downstream. It needs external pull-up. GCI Bus Data Upstream. It needs external pull-up. CP - output 512 KHz in LT-T mode. BCL - output 768 KHz in TE mode. Output FSCO clock 8 KHz for LT-T/LT-S mode (NT2 application). It is synchronous to DCLO. Output DPLL clock 4.096 MHz for LT-T/LT-S mode (NT2 application). It is synchronous to T interface clock. 16.384 MHz clock input for internal DPLL circuit to generate FSCO and DCLO. In the LT-T mode operation, if the application adopts W6691 internal DPLL function to generate 8 KHz Frame Synchronization Clock from FSCO and 4.096 MHz Data Clock from DCLO for NT2 system clcok, the CKLT 8KHz clock derived from one of other LT-T CP clock or itself CP clock (by Multiplexer). On the other hand, if the application doesn't adopts W6691 internal DPLL function, It should be tied to ground (VSS). PCM port1 frame synchronization signal, with 8 KHz repetition rate and 8 bits pulse width. PCM port2 frame synchronization signal, with 8 KHz repetition rate and 8 bits pulse width. PCM bit synchronization clock of 1.536 MHz. PCM transmit bus data output. A maximum of two channels with 64 Kbits/s data rate can be multiplexed on this signal. It needs external pull-up. PCM bus receive data input. A maximum of two channels with 64 Kbits/s data rate can be multiplexed on this signal. It needs external pull-up. S/T bus receiver input (negative). S/T bus receiver input (positive). S/T bus transmitter output (positive).
CKLT
37
I
PCM Interface (It is only used in TE Mode) PFCK1 PFCK2 PBCK PTXD PRXD 54 53 55 56 O O O O
57
I
ISDN Signals and External Crystal SR1 SR2 SX1 42 43 45 I I O
- 12 -
W6691
PIN NAME
PIN NO.
TYPE
FUNCTIONS
SX2 XTAL1 XTAL2
46 40 39
O I O
S/T bus transmitter output (negative). Crystal or Oscillator clock input. The clock frequency: 7.68MHz 100PPM. Crystal clock output. Left unconnected when using oscillator. Functional Test Used to enable normal operation (1) or enter test mode (0). In normal operation, it should be tied to high. Timer2 Expiration Output Timer 2 output. A square wave with 50 % duty cycle, 1~63 mS period can be generated. Clock Pulse It provides output 7.68MHz clock. It does not synchronize to S interface. Operating Mode Setting of operating mode Setting of operating mode Activate Layer1 Status.This pin can be pulled to low level or programmed by microprocessor by ACTL2: ACTL1S when Layer1 operates in activate.
TESTP
2
I
TOUT2
38
O
OSC768
8
O
M0 M1
31 32
I I
Peripheral Input Port and Output Port
ACTL1S
7
O
ACTL2: ACTL1S: 0: When Layer 1 operates in activate state, ACTL1S pin is pulled to low level. In contrast, if Layer 1 operates in deactivate state, ACTL1S pin is driven to high level. 1: The ACTL1 output level is programmed by microprocessor (ACTL2: ACLT1S). Power and Ground It should be connected with CPC pin 48 by 2.2uF capacitor for stabling internal power voltage. It should be connected with CNC pin 47 by 2.2uF capacitor for stabling internal power voltage.
CNC CPC VDD VDDA VSS VSSA
47 48 5, 22, 36, 49, 58 44 6, 21, 35, 50, 59 41 I O I I
Digital Power Supply (3.3V 5%). Analog Power Supply (5.0V 5%). It should be connected with 2.2uF capacitor for stabling internal power voltage. Digital Ground. Analog Ground.
- 13 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
5. SYSTEM DIAGRAM AND APPLICATIONS
NT 4-wire S/T Transfomer Module Phone Protection Circuit
W6691
FAX POTS Circuit PCM CODEC X2
S Interface
Microprocessor
Fig.5.1 ISDN Internet Passive S-card with Two POTS Connections
- 14 -
W6691
7.68MHz
7.68MHz
TE W6691
S interface
LT-S GCI W6691
TSI
GCI
LT-T W6691
T interface
8KHz(FSC)
UP
Clock Generator
512KHz 4.096MHz(DCL)
Fig.5.2 ISDN PAXB Application
- 15 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
6. BLOCK DIAGRAM
The block diagram of W6691 is shown in Figure 6.1
2B+D 2B+D 4-wire S/T Line Transceiver & AMI/BIN Conversion GCI Bus
Slip Buffer
B-channel Switching
2B+D GCI Bus GCI Circuit
D HDLC
Controller
B1 HDLC
Controller
B2 HDLC
Controller
PCM Port
PCM CODEC
FIFO
FIFO
FIFO
Crystal/Oscillator (7.68 MHz)
DPLL1 and Timing Generator
POTS circuit
I/O Control
Microprocessor Interface Circuit DPLL2
FSCO DCLO C16.384
Fig.6.1 W6691 Functional Block Diagram
- 16 -
W6691
7. FUNCTIONAL DESCRIPTIONS
7.1 Main Block Functions
7.1.1 Internal Block Function Description
The functional block diagram of W6691 is shown in Fig.6.1. The main function blocks are: - Layer 1 function according to ITU-T I.430 - B channel switching - GCI bus interface - PCM port (x 2) and internal B channel switching - D channel HDLC controller - DPLL 2 circiut generating 4.096 MHz clock for NT2 application
The layer 1 function includes: - S/T bus transmitter/receiver - Timing recovery using Digital Phase Locked Loop (DPLL) circuit - Layer 1 activation/deactivation - D channel access control - Frame alignment - Multi-frame synchronization - Test functions
The serial interface bus performs the multiplexing/demultiplexing of D and 2B channels. The B channel switching determines the connection between layer 1/GCI, layer 2 and PCM. GCI bus is for TE, LT-S and LT-T mode applications. The PCM port provides two 64 kbps clear channels to connect to PCM codec chips. The D channel HDLC controller performs the LAPD (Link Access Procedure on the D channel) protocol according to ITU-T I.441/Q.921 recommendation. The peripheral simple I/O is used to control other peripheral devices such as CODEC, SLIC, DTMF detector, LEDs.
- 17 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
7.1.2
Interface and Operating Modes
ISDN terminals --- TE mode (M1 = 0 & M0 = 0) ISDN subscriber line termination --- LT-S mode (M1=1 & M0 = 0) ISDN trunk line termination ---LT-T mode (M1 = 0 & M0 = 1) TE, LT-S and LT-T modes are configured by setting mode pins (M1 and M0).
The W6691 can be configured for the following application:
7.2 Layer 1 Function Description
7.2.1 S/T Interface Transmitter/Receiver
According to ITU-T I.430, pseudo-ternary code with 100% pulse width is used in both directions of transmission on the S/T interface. The binary "1" is represented by no line signal (zero volt), whereas a binary "0" is represented by a positive or negative pulse. Data transmissions on the S/T interface are arranged as frame structures. The frame is 250 s long and consists of 48 bits, which corresponds to a 192 kbit/s line rate. Each frame carries two octets of B1 channel, two octets of B2 channel and four D channel bits. Therefore, the 2B+D data rate is 144 kbit/s. The frame structure is shown in Fig.7.1. The frame begin is marked by a framing bit, which is followed by a DC balancing bit. The first binary "0" following the framing bit balancing bit is of the same polarity as the framing bit balancing bit, and subsequent binary zeros must alternate in polarity.
- 18 -
W6691
NT TE
DL 0 1 0 F L B1B1B1B1B1B1B1B1 E D
48 bits in 250 s
A FAN B2B2B2B2B2B2B2B2 E D M B1B1B1B1B1B1B1B1 E DS B2B2B2B2B2B2B2B2 E DL
2 bits offset
TE NT
D 0 1 0 L F L B1B1B1B1B1B1B1B1 L D L FA L B2B2B2B2B2B2B2B2L D L B1B1B1B1B1B1B1B1 L DL B2B2B2B2B2B2B2B2 L D
F = Framing bit L = DC balancing bit D = D channel bit E = D channel echo bit FA = Auxiliary framing bit or Q-bit
N = Bit set to a binary value N=FA B1 = Bit within B channel 1 B2 = Bit within B channel 2 A = Bit used for activation S = Bit used for S channel M = Multiframe bit
Fig.7.1 Frame Structure at S/T Interface
There are three wiring configurations according to I.430: point-to-point, short passive bus and extended passive bus. They are shown in Fig.7.2.
- 19 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
W6691 TE
1000 m TR (a) Point-to-point configuration TR NT
100~200 m TR 10m W6691 TE1 ..... TR NT
TE8
(b) Short passive bus configuration
100~200 50m TR 10m W6691 TE1 TR NT
.....
TE8 TR : Terminating Resistor
(c) Extended passive bus configuration
Fig.7.2 W6691 Wiring Configuration in TE Applications The transmitter and receiver are implemented by differential circuits to increase signal to noise ratio (SNR). The nominal differential line pulse amplitude at 100 termination is 750 mV, zero to peak. Transformers with 2:1 turn ration are needed at transmitter and receiver for voltage level translation and DC isolation. To meet the electrical characteristic requirements in I.430, some additional circuits are needed. At the transmitter side, the external resistors (5 to 10 ) are used to adjust the output pulse amplitude and to meet the transmitter active impedance ( 20 ) when transmitting binary zeros. At the receiver side, the 1.8 k resistors protect the device inputs, while the 10 k resistors (1.8 k +8.2 k) limit the peak current in impedance tests. The diode bridge is used for overvoltage protection.
- 20 -
W6691
5-10 SX1
2:1
GND
VDD
100
SX2
5-10
Fig.7.3 External Transmitter Circuitry
- 21 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
SR1
1.8k
8.2k
2:1
GND
VDD
100
SR2
1.8k
8.2k
Fig.7.4 External Receiver Circuitry
After hardware reset, the receiver may enter power down state in order to save power consumption. In this state, the internal clocks are turned off, but the analog level detector is still active to detect signal coming from the S interface. The power down state is left either by non-INFO 0 signal from S interface or C/I command from microprocessor.
- 22 -
W6691
7.2.2
Receiver Clock Recovery And Timing Generation
1) TE mode A Digital Phase Locked Loop (DPLL) circuit is used to derive the receiving clock from the received data stream in TE mode application. This DPLL uses a 7.68 MHz clock as reference. According to I.430, the transmit clock is normally delayed by 2 bit time from the receive clock. The "total phase deviation from input to output" is -7% to +15% of a bit period. In some cases, delay compensation may be needed to meet this requirement (see OPS1-0 bits in D_CTL register). 2) LT-T mode In LT-T mode application, A Digital Phase Locked Loop (DPLL) circuit is also used to derive the receiving clock(192 KHz) from the received data stream.W6691 generates a CP (Clock Pulse ) derived from the 192 KHz receiving clock with DPLL. CP clock rate is 512 KHz or 1536 KHz. If CP clock is used to synchronize NT2 clock, W6691 provide a slip buffer to avoid slipping between DCL and CP. 3) LT-S mode In LT-S modes, A Digital Phase Locked Loop (DPLL) circuit is used to derive the receiving clock from the received data stream. This DPLL uses a 7.68 MHz clock as reference. TABLE 7.1 OUTPUT PHASE DELAY COMPENSATION TABLE
OPS1 OPS0 EFFECT
0 0 1 1
0 1 0 1
No phase delay compensation Phase delay compensation 260 nS Phase delay compensation 520 nS Phase delay compensation 1040 nS
W6691 does not need RC filter on receiver side, therefore zero delay compensation is selected normally. This is also the default setting. The PCM output clocks (PFCK1-2, PBCK) are locked to the S-interface timing with jitter. See the electrical specification.
7.2.3
Layer 1 Activation/Deactivation
The layer 1 activation/deactivation procedures are implemented by a finite state machine according to TE/LT-T/LT-S mode. The state transitions are triggered by signals received at S interface or commands issued from microprocessor. The state outputs signals to S interface and indication to microprocessor. The CIX register is used by microprocessor to issue command, and the CIR register is used by microprocessor to receive indication. Some commands are used for special purposes. They are "layer 1 reset", "analog loopback", "send continuous zeros" and "send single zero".
- 23 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
7.2.3.1 States Descriptions And Command/Indication Codes in TE/LT-T
F3
Deactivated without clock
This is the "deactivated" state of ITU-T I.430. The receive line awake unit is active except during a hardware reset pulse. After reset, once the indication "1111" has been read out, internal clocks will turn off and stay at this state if INFO 0 is received on the S line. The turn off time is approximate 93 ms. The ECK command must be issued to activate the clocks. F3 Deactivated with clock
This state is identical to "F3 Deactivated without clock" except the internal clocks are enabled. The state is entered by the ECK command. The clocks are enabled approximately 0.5 mS to 4 mS after the ECK command, depending on the crystal capacitances. (It is about 0.5 ms for 12 pF to 33 pF capacitance). F3 Awaiting Deactivation
The W6691 enters this state after receiving INFO 0 (in states F5 to F8) for 16ms (64 frames). This time constant prevents spurious effect on S interface. Any non-INFO 0 signal on the S interface causes transition to "F5 Identifying Input" state. If this transition does not occur in a specific time (500 1000 ms), the microprocessor may issue DRC or ECK command to deactivate layer 1. F4 Awaiting Signal
This state is reached when an activate request command has been received. In this state, the layer 1 transmits INFO1 and INFO 0 is received from the S interface. The software starts timer T3 of I.430 when issuing activate request command. The software deactivates layer 1 if no signal other than INFO 0 has been received on S interface before expiration of T3. F5 Identifying Input
After the receipt of any non-INFO 0 signal from NT, the W6691 ceases to transmit INFO 1 and awaits identification of INFO 2 or INFO 4. This state is reached at most 50 S after a signal different from INFO 0 is present at the receiver of the S interface. F6 Synchronized
When W6691 receives an activation signal (INFO 2), it responds with INFO 3 and waits for normal frames (INFO 4). This state is reached at most 6 ms after an INFO 2 arrives at the S interface (in case the clocks were disabled in "F3 Deactivated without clock"). F7 Activated
This is the normal active state with the layer 1 protocol activated in both directions. From state "F6 Synchronized", state F7 is reached at most 0.5 ms after reception of INFO 4. From state "F3 Deactivated without clock" with the clocks disabled, state F7 is reached at most 6 ms after the W6691 is directly activated by INFO 4. F8 Lost Framing
This is the state where the W6691 has lost frame synchronization and is awaiting resynchronization by INFO 2 or INFO 4 or deactivation by INFO 0.
- 24 -
W6691
Special States: Analog Loop Initiated On Enable Analog Loop command, INFO 3 is sent by the line transmitter internally to the line receiver (INFO 0 is sent to the line). The receiver is not yet synchronized. Analog Loop Activated The receiver is synchronized on INFO 3 which is looped back internally from the transmitter. The indication 'TI" or "ATI" is sent depending on whether or not a signal different from INFO 0 is detected on the S interface. Send Continuous Pulses A 96 kHz continuous pulse with alternating polarities is sent. Send Single Pulses A 2 KHz , isolated pulse with alternating polarities is sent. Layer 1 Reset A layer 1 reset command forces the transmission of INFO 0 and disables the S line awake detector. Thus activation from NT is not possible. There is no indication in reset state. The reset state can be left only with ECK command. TABLE 7.2 LAYER 1 COMMAND CODES
COMMAND SYM. CODE DESCRIPTION
Enable clock Layer 1 reset Send continuous pulses Send single pulses Activate request at priority 8 Activate request at priority 10 Enable analog loopback Deactivate layer 1
ECK RST SCP SSP AR8 AR10 EAL DRC
0000 0001 0100 0010 1000 1001 1010 1111
Enable internal clocks Layer 1 reset Send continuous pulses at 96 KHz Send isolated pulses at 2 KHz Activate layer 1 and set D channel priority level to 8 Activate layer 1 and set D channel priority to 10 Enable analog loopback Deactivate layer 1 and disable internal clocks
- 25 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
TABLE 7.3 LAYER 1 INDICATION CODES
INDICATION SYM. CODE DESCRIPTIONS
Clock Enabled Deactivate request downstream Level detected Activate request downstream Test indication Awake test indication Activate indication with priority class 1 Activate indication with priority class 2 Clock disabled
CE DRD LD ARD TI ATI AI8 AI10 CD
0111 0000 0100 1000 1010 1011 1100 1101 1111
Internal clocks are enabled Deactivation request by S interface, i.e INFO 0 received Signal received, receiver not synchronous INFO 2 received Analog loopback activated or continuous zeros or single zeros transmitted Level detected during test function INFO 4 received, D channel priority is 8 or 9 INFO 4 received, D channel priority is 10 or 11 Layer 1 deactivated, internal clocks are disabled
7.2.3.2 State Transition Diagrams in TE/LT-T
The followings are the state transition diagrams, which implement the activation/deactivation state matrix in I.430 (TABLE 5/I.430). The "command" and "s receive" entries in each state octagon keep the state, the "indication" and "s transmit" entries in each state octagon are the state outputs. For example, at "F3 Deactivated with clock" state, the layer 1 will stay at this state if the command is "ECK" and the INFO 0 is received on S interface. At this state, it provides "CE" indication to the microprocessor and transmits INFO 0 on S interface. The "AR8/10" command causes transition to F4 and non-INFO 0 signal causes transition to F5. Note that the command code writtern by the microprocessor in CIX register and indication code written by layer 1 in CIR register are transmitted repeatedly until a new code is written.
- 26 -
W6691
F4 Await. Signal AR8/10 i0 ^i0 CE i1
3)
DRC ECK AR8/10 F3 Deact w/o clk DRC CD i0
F5 Ident. Input i4 ^RST any
1)
^i0 i0
3)
i0
LD i0 i2
2)
ECK AR8/10 ^i0 i0
3)
DRC
F3 Deact with clk ECK i0 CE i0
Lost Framing
F6 Synchronized ^RST i2 i4
1)
ARD i3 i2
ECK DRC ^i0
3)
F3 Await. Deact. AR8/10 i0 DRD i0
F7 Activated AR8/10 i4 Lost Framing i2 AI8/10 i3 i4 i0
Notation:
State i0 com s receive Ind s trans.
F8 Lost Framing ^RST any
1)
LD i0
2)
Notes: 1. "^RST" means "NOT layer 1 reset command". 2. "Any" means any signal other than i0, which has not yet been determined. 3. "^i0" means any signal other than i0 Fig.7.5 layer 1 activation/deactivation state diagram - normal mode
Fig.7.5 Layer 1 Activation/Deaction State Diagram - TE/LT-T Normal Mode
- 27 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
Reset RST RST Ignored None i0 ECK EAL
Ana. Loop Init. EAL Ignored CE i3
5)
Y
2)
i3
5)
^i3
5)
Ana. Loop EAL Ignored SCP Ignored Y
2)
Act. TI/ATI i3
5)
Y
2)
Send Cont. Pulses SCP TI ic
3)
Notation:
Send Sing. Pulses SSP SSP Ignored Y
2)
State com s receive Ind s trans.
TI is
4)
Notes: 1. RST can be issued at any state, while SCP, SCZ and EAL can be issued only at F3 or F7. 2. Y is one of the commands: ECK, DRC, RST. 3. Continuous pulses at 96 KHz. 4. Isolated pulses at 2 KHz. 5. The INFO 3 is transmitted internally only.
Fig.7.6 Layer 1 Activation/Deactivation State Diagram - TE/LT-T SPECIAL Mode
- 28 -
W6691
7.2.4 Layer 1 Activation /Deactivation in LT-S Mode
7.2.4.1 States Descriptions and Command/Indication Codes in LT-S Mode
G1 Deactivated No any signal is detected on S interface and No any activation command is received in the C/I channel. G2 Pending Activation
If INFO1 is detected on S interface or an ARD command is received from layer2, the W6691 start to transmit INFO2. W6691 is waiting for receiving INFO3 from S interface. INFO2 is sent from W6691. G3 Activated
W6691 receives INFO3, then, it enters G3 activated state. The INFO4 is transmitted in this state. When the synchronization is lost, W6691 switch to transmit INFO2 instead of INFO4 and wait for receiving INFO3 to get synchronization again. G4 Pending Deactivation
This state is requested by DDR (deactivate request). If INFO0 is received during 16ms or an internal timer2 expiration, the layer1 responses DRIU indication for Layer2. G4 Await Deactivated
The W6691 stays in this state and waits for DRIU report from layer2. If W6691 receives DRA command from layer2, it enters G1 state. Test Mode Continuous Pulses Continuous alternating 96 KHz pulses are sent. Test Mode Single Pulses Single alternating 2 KHz pulses are sent. TABLE 7.4 LAYER 1 COMMAND CODES
COMMAND SYM. CODE DESCRIPTION
Deactivate down request Send continuous pulses Send single pulses Activate request downstream Deactivate request assure RESET
DDR SCP SSP ARD DRA RST
0000 0011 0010 1000 1111 0001
Deactive Layer1 and disable internal clocks Send continuous pulses at 96 KHz Send isolated pulses at 2 KHz Request Layer1 activate Info2/Info4 sent Layer2 reponses Deactivate acknowledgement to make sure Layer1 can be deativate Initialize to G4 or G1 state
- 29 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
TABLE 7.5 LAYER 1 INDICATION CODES
INDICATION SYM. CODE DESCRIPTIONS
Signal Synchronize Activate Request Indication Upstream Activate Indication upstream Deactivate Request Indication Upstream RESET Indication Test Indication
SSYU ARIU AIU
0100 1000 1100
Received signal is not Info3 and try to re-synchronize again The INFO 1 signal detected is responsed to Layer2. Synchronous receiver Timer2 expired
DRIU RSTI TI
1111 0001 0000
Info 0 received during 25ms after deactivation request command Reset state indication
- 30 -
W6691
7.2.4.2 States Transition Diagram in LT-S Mode
Reset RST ARD RES i0/i1/i3 REST i0
G1 Deact DDR i0 DRIU i0 ARD or i1 G2 Pending Act DDR/ARD I0/i1 ARIU i2 i3 G3 Activated DDR/ARD i3 AIU i4 i3 DDR DDR DDR
Test Mode SCP/SSP SCP/SSP i0/i1/i3 TI IS
IS: continuous 96 KHz pulse signal or signal
single 2 KHz
pulse
^i3
Lost of Frame DDR/ARD ^i3 SSYN i2 DDR G4 pending deact ARD DDR i0/i1/i3 AIU i0 i0 during 25ms or T2 expire G4 Await deact ARD DDR i0/i3 DRIU i0 DDR
DRA
Fig.7.7 Layer 1 Activation/Deactivation State Diagram in LT-S
- 31 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
7.2.5
D Channel Access Control
The D channel access control includes collision detection and priority management. The collision detection is always enabled. The priority management procedure as specified in ITU-T I.430 is fully implemented in W6691. A collision is detected if the transmitted D bit and the received echo bit do not match. When this occurs, D channel transmission is immediately stopped, and the echo channel is monitored to attempt the next D channel access. There are two priority classes: class 1 and class 2. Within each class, there are normal and lower priority levels. TABLE 7.8 D PRIORITY CLASSES
NORMAL LEVEL LOWER LEVEL
Priority class 1 Priority class 2
8 10
9 11
The selection of priority class is via the AR8/AR10 command. The following table summarizes the commands/indications used for setting the priority classes:
TABLE 7.9 D PRIORITY COMMANDS/INDICATIONS
COMMAND SYM. CODE REMARKS
Activate request, set priority 8 Activate request, set priority 10 Indication Activate indication with priority 8 Activate indication with priority 10
AR8 AR10 Abbr. AI8 AI10
1000 1001
Activation command, set D channel priority to 8 Activation command, set D channel priority to 10 Remarks Info 4 received, D channel priority is 8 or 9 Info 4 received, D channel priority is 10 or 11
1100 1101
- 32 -
W6691
7.2.6 Frame Alignment
The following sections describe the behavior of W6691 in respect to the CTS-2 conformance test procedures for frame alignment. Please refer to ETSI-TM3 Appendix B1 for detailed descriptions.
7.2.6.1 FAinfA_1fr
This test checks if TE does not lose frame alignment on receipt of one bad frame. The pattern for the bad frame is defined as IX_96 KHz. This pattern consists of alternating pulses at 96 KHz during the whole frame. Device W6691 Settings None Result Pass
7.2.6.2 FAinfB_1fr
This test checks if TE does not lose frame alignment on receipt of one IX_I4noflag frame which has no framing and balancing bit. Device W6691
7.2.6.3 FAinfD_1fr
Settings None
Result Pass
This test checks if TE does not lose frame alignment on receipt of one IX-I4viol16 frame. The IX_I4viol16 frame remains at binary "1" until the first B2 bit which is bit position 16. The pulse sequences are: Framing bit, balancing bit, B2 bit, M bit, S bit, balancing bit. The TE should reflect the received FA bit (FA="1") in the transmitted frame. Device W6691 Settings None Result Pass
7.2.6.4 FAinfA_kfr
This is to test the number k of IX_96 KHz frames necessary for loss of frame alignment. Device W6691
7.2.6.5 FAinfB_kfr
Settings k=2
Result Pass
This is to test the number k of IX_I4noflag frames necessary for loss of frame alignment. Device W6691 Settings k=2 Result Pass
- 33 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
7.2.6.6 FAinfD_kfr
This is to test the number k of IX_I4noflag frames necessary for loss of frame alignment. Device W6691
7.2.6.7 Faregain
Settings k=2
Result Pass
This is to test the number m of good frames necessary for regain of frame alignment. The TE regains frame alignment at m+1 frame. The W6691 achieves synchronization after 5 frames, i.e m = 4. Device W6691 Settings m=4 Result Pass
7.2.7
Multiframe Synchronization
As specified by ITU-T I.430, the Q bit is transmitted from TE to NT in the position normally occupied by the auxiliary framing bit (FA) in one frame out of 5, whereas the S bit is transmitted from NT to TE. The S and Q bit positions and multiframe structure are shown in Table 7.10. The functions provided by W6691 are: Multiframe synchronization: Synchronization is achived when the M bit pattern has been correctly received during 20 consecutive frames starting from frame number 1.
Note: Criterion for multiframe synchronization is not defined in I.430 Recommendation.
-
S bits receive and detect: When synchronization is achieved, the four received S bits in frames 1,6,11,16 are stored as S1 to S4 in the SQR register respectively. A change in the recived four bits (S1-4) is indicated by an interrupt. Multiframe synchronization monitoring: Multiframe synchronization is constantly monitored. The synchronization state is indicated by the MSYN bit in the SQR register. Q bits transmit and FA mirroring: When multiframe synchronization is achived, the four bits Q1-4 stored in the SQXR register are transmitted as the four Q bits (FA-bit position) in frames 1,6,11 and 16. Otherwise the FA bit transmitted is a mirror of the received FA-bit. At loss of synchronization, the mirroring is resumed at the next FA-bit. The multiframe synchronization can be disabled by setting MFD bit in the D_MODE register. According to I.430 Recommendation, the S/Q channel can be used as operation and maintenance signalling channel. At transmitter, a S/Q code for a message shall be repeated at least six times or as many as necessary to obtain the desired response. At receiver, a message shall be considered received only when the proper codes is received three consecutive times.
-
-
- 34 -
W6691
TABLE 7.10 MULTIFRAME STRUCTURE IN S/T INTERFACE
FRAME NUMBER
NT-to-TE FA-bit position ONE ZERO ZERO ZERO ZERO ONE ZERO ZERO ZERO ZERO ONE ZERO ZERO ZERO ZERO ONE ZERO ZERO ZERO ZERO ONE ZERO
NT-to-TE M bit ONE ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ZERO ONE ZERO
NT-to-TE S bit S1 ZERO ZERO ZERO ZERO S2 ZERO ZERO ZERO ZERO S3 ZERO ZERO ZERO ZERO S4 ZERO ZERO ZERO ZERO S1 ZERO
TE-to-NT FA-bit position Q1 ZERO ZERO ZERO ZERO Q2 ZERO ZERO ZERO ZERO Q3 ZERO ZERO ZERO ZERO Q4 ZERO ZERO ZERO ZERO Q1 ZERO
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 2 etc.
- 35 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
7.2.8
-
Test Functions
Digital loop via DLP bit in D_MODE register: In the layer 2 block, the transmitted 2B+D data are internally looped (from HDLC transmitter to HDLC receiver), and in the PCM ports, the transmitted B channels are internally looped (from PCM inputs to PCM outputs). The clock timings are generated internally and are independent of the S bus timing. This loop function is used for test of PCM and higher layer functions, excluding layer 1. After hardware reset, W6691 will power down if S bus is not connected or if there is no signal on the S bus. In this case, the C/I command ECK must be issued to power up the chip. Analog loop via the C/I command EAL: The analog S interface transmitter is internally connected to the S interface receiver. When the receiver has synchronized itself to the internal INFO 3 signal, the message "Test Indication" or "Awake Test Indication" is delivered to the CIR register. No signal is transmitted over the S interface. In this mode, the S interface awake detector is enabled. Therefore if a level (INFO 2/ INFO 4) is detected on the S interface, this will be reported by the "Awake Test Indication (ATI)" indication.
The W6691 provides loop and test functions as follows:
-
-
Remote loopback via RLP bit in D_MODE register: The digital 2B data received from the S interface receiver is loopbacked to the S interface transmitter. The D channel is not looped. When RLP is enabled, layer 1 D channel is connected to HDLC port and DLP cannot be enabled. Transmission of special test signals via layer 1 command: * Send Single Pulses (SSP): To send isolated single pulses of alternating polarity, with pulse width of one bit time, 250 S apart, with a repetition frequency of 2 KHz. * Send Continuous Pulses (SCP): To send continuous pulses of alternating polarity, with pulse width of bit time. The repetition frequency is 96 KHz.
-
- 36 -
W6691
250 us
(a) Single pulses
(b) Continuous pulses
Fig.7.9 SSP and SCP Test Signals
7.3 B Channel Switching
W6691 provides five kinds of B channel switching function. 1. PCM and GCI bus Switch (SFCTL: PGSWH): It determines the CODEC interface is to be operated in B channel. 1: PCM bus is selected to operate with CODEC. 0: GCI bus is selected to operate with CODEC. 2. PCM Remote Loop Back (SFCTL: PCRLP) Setting this bit activates the PCM channel remote loopback function. The transmitted PCM data to PCM channel are looped to received PCM channel. 3. PXC PCM Cross-connect (SCFT: PXC)
This bit determines whether or not the PCM ports are cross-connected with the B channel ports. The setting of PXC is independent of the BSW1-0 bits. PXC 0 1 Connection PCM1 B1, PCM2 B2 PCM1 B2, PCM2 B1 Publication Release Date: June 11, 2003 Revision 1.5
- 37 -
W6691
4. B2SW1 / B2SW0 B2 channel Switch These two bits determine B2 channel switch among PCM port, Layer1/GCI and Layer2. 00: Select B2 channel switch between Layer2 and Layer1/GCI. 01: Select B2 channel switch between Layer1/GCI and PCM. 10: Select B2 channel switch between PCM and Layer2. 5. B1SW1 / B1SW0 B1 channel Switch
These two bits determine B1 channel switch among PCM port, Layer1/GCI and Layer2. 00: Select B1 channel switch between Layer2 and Layer1/GCI. 01: Select B1 channel switch between Layer1/GCI and PCM. 10: Select B1 channel switch between PCM and Layer2.
7.4 PCM Port
There are two PCM ports in W6691. Data is valid when respective PFCK is HIGH. The frame synchronization clocks (PFCK1-2) are 8 KHz and the bit synchronization clock (PBCK) is 1.536 MHz.
7.5 Channel HDLC Controller
There are two HDLC protocols that are used for ISDN layer 2 functions: LAPD and LAPB. Their frame formats are shown below. LAPB modulo 8: flag address control information (0 or N octets) FCS (2 octets) flag (1 octet)
(1 octet) (1octet) (1octet)
Control field bits I frame S frame U frame
7
6 N(R) N(R)
5
4 P P/F
3
2 N(S)
1
0 0
S M
S M
0 1
1 1
M
M
M
P/F
- 38 -
W6691
LAPB modulo 128: flag address control (1 or 2 octets) information (0 or N octets) FCS (2 octets) flag (1 octet)
(1 octet) (1octet)
1st octet Control field bits I frame S frame U frame X M X M X M 7 6 5 4 N(S) X P/F S M S M 0 1 3 2 1 0 0 1 1 7 6 5
2nd octet 4 N(R) N(R) 3 2 1 0 P P/F
LAPD : modulo 128 only flag (1 octet) address (2 octets) control (2 octets) information (0 or N octets) FCS (2 octets) flag (1 octet)
1st octet Control field bits I frame S frame U frame 0 M 0 M 0 M 7 6 5 4 N(S) 0 P/F S M S M 0 1 3 2 1 0 0 1 1 7 6 5
2nd octet 4 N(R) N(R) 3 2 1 0 P/F P/F
7.5.1
D Channel Message Transfer Modes
The D channel HDLC controller operates in transparent mode. Chracteristics: Receive frame address recognition Address comparison maskable bit-by-bit Flag generation / deletion Zero bit insertion/ deletion Frame Check Sequence (FCS) generation/ check with CRC_ITU-T
16 12 5
Note. The LAPD protocol uses the CRC_ITU-T for Frame Check Sequence. The polynominal is X + X + X + 1.
- 39 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
For address recognition, the W6691 provides four programmable registers for individual SAPI and TEI values, SAP1-2 and TEI1-2, plus two fixed values for group SAPI and TEI, SAPG and TEIG. The SAPG equals 02H(C/R = 1) or 00H(C/R = 0) which corresponds to SAPI = 0. The TEIG equals FFH which corresponds to TEI = 127. Incoming frame with 1st address octet = (SAP1 or SAP2 or SAPG) and 2nd address octet = (TEI1 or TEI2 or TEIG) will be stored in the receive FIFO, with flag and FCS fields being discarded and stuffed bits being removed. The valid address combinations are: SAP1 and TEI1 SAP1 and TEI = 127 SAP2 and TEI2 SAP2 and TEI = 127 SAPI = 0 and TEI1 SAPI = 0 and TEI2 SAPI = 0 and TEI = 127
The receive frame address comparisons can be disabled (masked) per bit basis by setting the D_SAM and D_TAM registers, but comparisons with the SAPG or TEIG cannot be disabled.
7.5.2
Reception of Frames in D Channel
A 128-byte FIFO is provided in the receive direction. The data movement is handled by interrupts. There are two interrupt sources: Receive Message Ready (D_RMR) and Receive Message End (D_RME). The D_RMR interrupt indicates that at least 64 bytes of data have been received and the message/ frame is not ended. Upon D_RMR interrupt, the microprocessor reads out 32 bytes of data from the FIFO. The D_RME interrupt indicates the last segment of a message or a message with length 32 bytes has been received. The length of data is less than or equal to 32 and is specified in the D_RBCL register. If the length of the last segment of message is 32, only D_RME interrupt is generated and the RBC4-0 bits in D_RBCL register are 000000B. The data between the opening flag and the CRC field are stored in D_RFIFO. For LAPD frame, this includes the address field, control field and information field. When a D_RMR or D_RME interrupt is generated, the micro-processor must read out the data from D_RFIFO and issues the Receive Message Acknowledgement command (D_CMDR: RACK bit) to explicitly acknowledge the interrupt. The microprocessor must handle the interrupt before more than 32 bytes of data are received. This corresponds to a maximum microprocessor reaction time of 16 ms at 16 kbps data rate. If the microprocessor is late in handling the interrupt, the incoming additional bytes will result in a "data overflow" interrupt and status bit.
- 40 -
W6691
7.5.3 Transmission of Frames in D Channel
A 64-byte FIFO is provided in the transmit direction. If the transmit FIFO is ready (which is indicated by a D_XFR interrupt), the micro-processor can write up to 32 bytes of data into the FIFO and use the XMS command bit to start frame transmission. The HDLC transmitter sends the opening flag first and then sends the data in the transmit FIFO. The microprocessor must write the address, control and information field of a frame into the transmit FIFO. Every time no more than 32 bytes of data are left in the transmit FIFO, the transmitter generates a D_XFR interrupt to request another block of data. The microprocessor can then write further data to the transmit FIFO and enables the subsequent transmission by issuing an XMS command. If the data written to the FIFO is the last segment of a frame, the microprocessor issues the XME (Transmit Message End) and XMS command bits to finish the frame transmission. The transmitter then transmits the data in the FIFO and appends CRC and closing flag. If the microprocessor fails to respond the D_XFR interrupt within a given time (16 ms), a data underrun condition will occur. The W6691 will automatically reset the transmitter and send inter frame time fill pattern (all 1's) on D channel. The microprocessor is informed about this condition via an XDUN (Transmit Data Underrun) interrupt in D_EXIR register. The microprocessor must wait until transmit FIFO ready (via XFR interrupt), re-write data, and issue XMS command to re-transmit the data. It is possible to abort a frame by issuing a D_CMDR: XRST (D channel Transmitter Reset) command. The XRST command resets the transmitter and causes a transmit FIFO ready condition. After the microprocessor has issued the XME command, the successful termination of transmission is indicated by an D_XFR interrupt. The inter-frame time fill pattern must be all 1's, according to ITU-T I.430. Collisions which occur on the D channel of S interface will cause an D_EXIR: XCOL interrupt. A XRST (Transmitter Reset) command must be issued and software must wait until transmit FIFO ready (via XFR interrupt), re-write data, and issue XMS command to re-transmit the data.
7.6 GCI Mode Serial Interface Bus
The GCI is a generalization and enhancement of the general purpose, serial interface bus. The channel structure of the GCI mode is depicted below. The timing is compatible with Siemens's IOM-2 mode.
- 41 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
TE Mode Timing TE mode contains three channels. The structure of TE mode is show in Fig7.10.
DCL
FSC
125us
FSC
DU / DD
B1
B2
M0
D CI0 AE
M1
CI1
AE
CH0
CH1
CH2
B1 : 64 Kbits/s B channel 1 B2 : 64 Kbits/s B channel 2 M0 : Monitor channel 0 D : 16Kbits/s D channel CI0: 48Kbits/s Command / Indication Channel A/E : 16Kbits Monitor channel handshake signaling M1: Monitor channel1 CI1: 48Kbits/s Command / Indication Channel
Fig.7.10 GCI TE Mode Channel Structure
- 42 -
W6691
Non-TE mode Timing Non -TE mode timing is used LT-S and LT-T applications. The frame contains eight channel (ch0 ~ ch7) GCI channels. All structure of the eight channels shown in Fig7.11 is the same.
DCL
FSC
125us
FSC
DU / DD
C0
C1
C2
C3
C4
C5
C6
C7
C0
C1
C2
B1
B2
M
D
CI
AE
C0
B1 : 64 Kbits/s B channel 1 B2 : 64 Kbits/s B channel 2 M : Monitor channel D : 16Kbits/s D channel CI: 48Kbits/s Command / Indication Channel A/E : 16Kbits Monitor channel handshake signaling
Fig.7.11 GCI Non -Terminal Mode Channel Structure
- 43 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
7.6.1 GCI Mode C/I Channel Handling
1) CI0 channel The Command/Indication channel 0 carries real-time status information between the W6691 and another device connected to the GCI bus interface. One CI0 channel conveys the commands and indications between a layer 1 device and layer 2 device. This C/I0 channel is accessed via register CIR (in receive direction, layer 1 to layer 2) and register CIX (in transmit direction, layer 2 to layer 1). The C/I code is 4-bit long. * In the receive direction, the code from layer 1 is continuously monitored, with an interrupt being generated anytime a change occurs. A new code must be found in two consecutive GCI frames to be considered valid and to trigger a C/I code change interrupt status (double last look criterion). * In the transmit direction, the code written in CIX is continuously transmitted in the channel. 2) CI1 channel CI1 channel is responsible for real time communication between W6691 and other non-layer1 peripheral devices. It consists of six bits. This channel can be used only in TE mode. C1X and C1R are used for CI1 channel access in both of transmitting and receiving direction. CI1 code changed is indicated by an interrupt without double last look criterion. This interrupt will set CI1 bit in GCI_EXIR.
7.6.2
GCI Mode Monitor Channel Handling
The Monitor channel protocol is a handshake protocol used for high speed information exchange between the W6691 and other devices. The Monitor channel is necessary for: * Programming and controlling devices attached to the GCI interface. * Data exchange between two microprocessor systems attached to two different devices on one GCI backplane. Use of the Monitor channel avoids the necessity of a dedicated serial communication path between two systems. The Monitor channel operates on an asynchronous basis. While data transfers on the bus take place synchronized to frame sync, the flow of data is controlled by a handshake procedure using the Monitor Channel Receiver (MOR) and Monitor Channel Transmit (MOX) bits. When data is placed into the Monitor channel and the "A" bit is activated. This data will be transmitted repeatedly once per 8 KHz frame until the transfer is acknowledged via the "E" bit. The microprocessor may either enforce a 1 (idle state) in "E", "A" bit by setting the control bit MRC or MXC (MOCR register) to 0, or enable the control of these bits internally by the W6691 according to the Monitor channel protocol. Thus, before a data exchange can begin, the control bit MRC, or MXC should be set to 1 by the microprocessor. The relevant status bits are: * For the reception of Monitor data: MDR (Monitor Channel Data Received) MER (Monitor Channel End of Reception) * For the transmission of Monitor data: MDA (Monitor Channel Data Acknowledged) MAB (Monitor Channel Data Abort)
- 44 -
W6691
About the status bit MAC(Monitor Channel Transmit Active) indicates whether a transmission is progress. * If set MAC = 0, the previous transmission has been terminated. Before starting a transmission, the microprocessor should verify that the transmitter is inactive. * If set MAC = 1, after having written data into the Monitor Transmit Channel (MOX) register, the microprocessor sets this bit to 1. This enables the "A" bit to go active (0), indicating the presence of valid Monitor data (contents of MOX) in the corresponding frame. The receiving device stores the Monitor byte in its MOR (Monitor Receive Channel) and generates a MDR (Monitor Channel Data Receive) interrupt status. Alerted by the MDR interrupt, the microprocessor reads the MOR register. When it is ready to accept data, it sets the "E" control bit MRC to 1 to enable the receiver to store succeeding Monitor channel bytes and acknowledge them according to the Monitor channel protocol. In addition, it enables other Monitor channel interrupts by setting Monitor Channel Interrupt Enable to 1. The first Monitor channel byte is acknowledged by the receiving device setting the "E" bit to 0. This causes a MDA (Monitor Channel Data Acknowledge) interrupt status at the transmitter. A new Monitor channel data byte can now be written by the microprocessor in MOX register. The "A" bit is still in the active (0) state. The transmitter indicates a new byte in the Monitor channel by returning the "A" bit active after sending it once in the inactive state. The receiver stores the Monitor channel byte in MOR register and generates a new MDR interrupt status. When the microprocessor has read the MOR register , the receiver acknowledges the data by returning the "E" bit active after sending it once in the inactive state. This in turn causes the transmitter to generate a MDA interrupt status. This MDA interrupt write data MDR interrupt read data MDA interrupt handshake procedure is repeated as long as the transmitter has data to send. When the last byte has been acknowledged by the receiver (MDA interrupt status), the microprocessor sets the Monitor channel Transmit Control bit MXC to 0. This enforces an inactive (1) state in the "A" bit. Two frames of "A" inactive signifies the end of a message. Thus, a MER (Monitor channel End of Reception) interrupt status is generated by the receiver when the "A" bit is received in the inactive state in two consecutive frames. As a result, the microprocessor sets the "E" bit control bit MRC to 0, which in turn enforces an inactive state in the "E" bit. This marks the end of the transmission, making the MAC (Monitor channel Active) bit return to 0. During a transmission process, it is possible for the receiver to ask a transmission to be aborted by sending an inactive "E" bit value in two consecutive frames. This is effected by the microprocessor writing the "E" bit control bit MRC to 0. An aborted transmission is indicated by a MAB (Monitor Channel Data Abort) interrupt
7.7 8-bit Microprocessor Interface
At power up, the reset pin RST# must be asserted to initialize the chip. At rising edge of RST#, data value at MBS pin determines the operation modes: HIGH for Intel bus mode, LOW for Motorola bus mode.
- 45 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
8. REGISTER DESRCRIPTIONS
8.1 D Channel HDLC Controller Register Address Map
TABLE 8.1 D CHANNEL HDLC CONTROLLER REGISTER ADDRESS MAP OFFSET 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 R R D_RBCH D_RBCL R/W R/W R/W R/W R/W R/W D_SAM D_SAP1 D_SAP2 D_TAM D_TEI1 D_TEI2 R R D_XSTA D_RSTA
ACCESS REGISTER NAME DESCRIPTION
R W W R/W R_clear R/W R_clear R/W
D_RFIFO D_XFIFO D_CMDR D_MODE ISTA IMASK D_EXIR D_EXIM
D channel receive FIFO D channel transmit FIFO D channel command register D channel mode control Interrupt status register Interrupt mask register D channel extended interrupt D channel extended interrupt mask Reserved Reserved D channel transmit status D channel receive status Reserved Reserved D channel address mask 1 D channel individual SAPI 1 D channel individual SAPI 2 D channel address mask 2 D channel individual TEI 1 D channel individual TEI 2 Reserved Reserved D channel receive frame byte count high D channel receive frame byte count low
- 46 -
W6691
8.2 GCI Bus Control Register Address Map
TABLE 8.2 GCI BUS CONTROL REGISTER ADDRESS MAP OFFSET ACCESS 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 R_clear GCI_EXIR R/W GCI_EXIM R R/W CI1R CI1X R/W R R/W R/W GCR MO1R MO1X MO1C R/W R/W R/W MO0R MO0X MO0C R/W R/W R R/W CIR CIX SQR SQX W
REGISTER NAME DESCRIPTION
CSEL
Gci Bus cahnnel selection register Reserved Command/Indication receive Command/Indication transmit S/Q channel receive register S/Q channel transmit register Reserved Reserved Monitor receive channel 0 Monitor transmit channel 0 Monitor channel 0 interrupt Monitor channel 0 control register Reserved Reserved GCI mode control/ status register Monitor receive channel 1 Monitor transmit channel 1 Monitor channel 1 interrupt Monitor channel 1 control Reserved Reserved Reserved Reserved Reserved Reserved GCI CI1 indication GCI CI1 command Reserved GCI extended interrupt GCI extended interrupt mask
R_clear MO0I
R_clear MO1I
- 47 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
8.3 Miscellaneous Register Address Map
TABLE 8.3 MISCELLANEOUS REGISTER ADDRESS MAP OFFSET 36 37 38 39 3A 3B 3C 3D 3E 3F R/W R/W R/W R/W R/W R/W R/W R/W TIMR1 TIMR2 PCR PIODR SFCTL ACTL1 ACTL2 ACTL3
ACCESS REGISTER NAME DESCRIPTION
Reserved Reserved Timer 1 Timer 2 Peripheral control register Peripheral I/O data register Switch function controll register Auxiliary control register 1 Auxiliary control register 2 Auxiliary control register 3
- 48 -
W6691
8.4 D Channel HDLC Controller Register Memory Map
TABLE 8.4 D CHANNEL HDLC CONTROLLER REGISTER MEMORY MAP Offset 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 R R D_RBCH D_RBCL VN1 RBC7 VN0 RBC6 LOV RBC5 R/W R/W R/W R/W R/W R/W D_SAM D_SAP1 D_SAP2 D_TAM D_TEI1 D_TEI2 SAM7 SA17 SA27 TAM7 TA17 TA27 SAM6 SA16 SA26 TAM6 TA16 TA26 SAM5 SA15 SA25 TAM5 TA15 TA25 R R D_XSTA D_RSTA XDOW 0 0 RDOV XBZ CRCE R/W R W W R/W Name D_RFIFO D_XFIFO D_CMDR D_MODE RACK 0 RRST RACT 0 XACT D_XFR D_XFR XCOL XCOL STT1 S_RLPD INT1 INT1 TIN2 TIN2 XMS 0 INT0 INT0 GCI GCI 0 MFD D_EXI D_EXI ICC ICC XME L2_DLP B1_EXI B1_EXI T1EXP T1EXP XRST S_RLP B2_EXI B2_EXI SCC SCC 7 6 5 4 3 2 1 0
R_clr ISTA R/W IMASK
D_RMR D_RME D_RMR D_RME RDOV RDOV XDUN XDUN
R_clr D_EXIR R/W D_EXIM
Reserved Reserved 0 RMB 0 0 0 0 0 0 0 0
Reserved Reserved SAM4 SA14 SA24 TAM4 TA14 TA24 SAM3 SA13 SA23 TAM3 TA13 TA23 SAM2 SA12 SA22 TAM2 TA12 TA22 SAM1 SA11 SA21 TAM1 TA11 TA21 SAM0 SA10 SA20 TAM0 TA10 TA20
Reserved Reserved RBC12 RBC4 RBC11 RBC3 RBC10 RBC2 RBC9 RBC1 RBC8 RBC0
- 49 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
8.5 GCI Bus Register Memory Map
TABLE 8.5 GCI BUS REGISTER MEMORY MAP Offset R/W 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 R_clr GCI_EXIR R/W GCI_EXIM 0 1 0 1 0 1 R R/W CI1R CI1X 0 0 0 0 CI1R_6 CI1X_6 R R R/W R/W GCR MO1R MO1X 0 0 0 0 0 0 0 0 MDR1 MRIE1 MER1 MRC1 MDA1 MXIE1 MAB1 MXC1 MO1C MAC0 MAC1 0 R R/W R/W MO0R MO0X 0 0 0 0 0 0 0 0 MDR0 MRIE0 MER0 MRC0 MDA0 MXIE0 MAB0 MXC0 MO0C R R/W R R/W CIR CIX SQR SQX 0 0 0 0 0 0 0 0 0 0 MSYN 0 R/W Name CSEL 7 0 6 0 5 0 4 0 BAS BAC 0 0 3 0 2 CSEL2 1 CSEL1 0 CSEL0
Reserved CORD3 CORD2 CORD1 CORD0 CORD3 CORD2 CORD1 CORD0 S1 Q1 S2 Q1 S3 Q1 S4 Q1
Reserved Reserved
R_clr MO0I
Reserved Reserved 0 0 0 0 0
R_clr MO1I
Reserved Reserved Reserved Reserved Reserved Reserved CI1R_5 CI1X_5 MO1C MO1C CI1R_4 CI1X_4 MO0C 0 CI1R_3 CI1X_3 0 0 CI1R_2 CI1X_2 0 0 CI1R_1 CI1X_1 CI1 CI1
Reserved
- 50 -
W6691
8.6 Miscellaneous Register Memory Map
TABLE 8.6 MISCELLANEOUS REGISTER MEMORY MAP Offset R/W 36 37 38 39 3A 3B 3C 3D 3E 3F R/W R/W R/W R/W R/W R/W R/W R/W TIMR1 TIMR2 PCR PIODR SFCTL ACTL1 ACTL2 ACTL3 T1MD TMD 0 0 0 0 0 0 CNT6 TIDLE 0 0 0 ACTL1 INTOL CNT5 TCN5 0 0 SRST LC 0 Name 7 6 5 4 3 2 1 0
Reserved Reserved CNT4 TCN4 0 0 PXC 0 0 0 CNT3 TCN3 OE3 IO3 B2SW1 0 SPU 0 CNT2 TCN2 OE2 IO2 B2SW0 0 0 0 CNT1 TCN1 OE1 IO1 B1SW1 OPS1 0 0 CNT0 TCN0 OE0 IO0 B1SW0 OPS0 0 0
PGSWH PCRLP
8.7 D Channel HDLC Controller Register Description
8.7.1 D_ch receive FIFO D_RFIFO Read Address 00H
The D_RFIFO has a length of 64 bytes. After a D_RMR interrupt, exactly 32 bytes are available. After a D_RME interrupt, the number of bytes available equals RBC4-0 bits in the D_RBCL register.
8.7.2
D_ch transmit FIFO
D_XFIFO
Write Address 01H
The D_XFIFO has a length of 64 bytes. After an D_XFR interrupt, up to 32 bytes of data can be written into this FIFO for transmission. At the first time transmission, up to 64 bytes of data can be written.
8.7.3
7 RACK
D_ch command register
6 RRST 5 0 4 STT1
D_CMDR
3 XMS 2 0
Write Address 02H
1 XME 0 XRST
Value after reset: 00H
- 51 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
RACK Receive Acknowledge
After a D_RMR or D_RME interrupt, the processor must read out the data in D_RFIFO and then sets this bit to acknowledge the interrupt. Writing "0" to this bit has no effect. If RACK bit is set to "1" for operating "Receiver Acknowledge", It is not necessary to reset RACK bit to "0" by host processor. That is to say, once RACK is set to "1", RACK bit is reset to "0" by W6691 automatically. RRST Receiver Reset
Setting this bit resets the D_ch HDLC receiver and clears the D_RFIFO data. Writing "0" to this bit has no effect. If RRST bit is set to "1" for operating "Receiver Reset", It is not necessary to reset RRST bit to "0" by host processor. That is to say, once RRST is set to "1", RRST bit is reset to "0" by W6691 automatically. STT1 Start Timer 1
The timer 1 is started when this bit is set to one. The timer is stopped when it expires or by a write of the TIMR1 register. Writing "0" to this bit has no effect. If SST1 bit is set to "1" for operating "Start Timer1", It is not necessary to reset STT1 bit to "0" by host processor. That is to say, once STT1 is set to "1", STT1 bit is reset to "0" by W6691 automatically. XMS Transmit Message Start/Continue
Setting this bit will start or continue the transmission of a frame. The opening flag is automatically added by the HDLC controller. Writing "0" to this bit has no effect. If XMS bit is set to "1" for operating "Transmit Message Start/Continue", It is not necessary to reset XMS bit to "0" by host processor. That is to say, once XMS is set to "1", XMS bit is reset to "0" by W6691 automatically. XME Transmit Message End
Setting this bit indicates the end of frame transmission. The D_ch HDLC controller automatically appends the CRC and the closing flag after the data transmission. Writing "0" to this bit has no effect. If XME bit is set to "1" for operating "Transmit Message End", It is not necessary to reset XME bit to "0" by host processor. That is to say, once XME is set to "1", XME bit is reset to "0" by W6691 automatically. Note: If the frame 32 bytes, XME plus XMS commands must be issued at the same time. XRST Transmitter Reset
Setting this bit resets the D_ch HDLC transmitter and clears the D_XFIFO. The transmitter will send inter frame time fill pattern (which is 1's) immediately. This command also results in a transmit FIFO ready condition. Writing "0" to this bit has no effect. If XRST bit is set to "1" for operating "Transmit Reset", It is not necessary to reset XME bit to "0" by host processor. That is to say, once XRST is set to "1", XRST bit is reset to "0" by W6691 automatically.
- 52 -
W6691
8.7.4
7 0
D_ch Mode Register D_MODE
6 RACT 5 XACT 4 0 3 S_RLPD
Read/Write
2 MFD 1
Address 03H
0
Value after reset: 00H
L2_DLP S_RLP
RACT
Receiver Active
Setting this bit activates the D_ch HDLC receiver. This bit can be read. The receiver must be in active state in order to receive data.
Note: The receiver is deactive after hardware reset or software reset.
XACT
Transmitter Active
Setting this bit activates the D_ch HDLC transmitter. This bit can be read. The transmitter must be in active state in order to transmit data.
Note: The transmitter is deactive after hardware reset or software reset.
S_RLPD
S Interface Remote Loopback with D channel Loopback
Setting this bit to "1" activates the remote loopback function. The received 2B channels from the S interface are looped to the transmitted 2B channels of S interface. The received D channel from the S interface is also looped to transmitted D channel of S interface in the loopback function. MFD Multiframe Disable
This bit is used to enable or disable the multiframe structure on S/T interface: 0: Multiframe is enabled 1: Multiframe is disabled L2_DLP Layer2 Digital Loopback
Setting this bit activates the layer2 digital loopback function. The transmitted digital 2B+D channels are looped to the received 2B+D channels. Note that after hardware reset, the internal clocks will turn off if the S bus is not connected or if there is no signal on the S bus. In this case, the C/I command ECK must be issued to enable loopback function. S_RLP S Interface Remote Loopback
Setting this bit to "1" activates the remote loopback function. The received 2B channels from the S interface are looped to the transmitted 2B channels of S interface. The received D channel from the S interface is not looped to transmitted D channel of S interface in this loopback function.
- 53 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
8.7.5
7 D_RMR
Interrupt Status Register
6 D_RME 5 D_XFR
ISTA
4 INT1 3 INT0
Read_clear
2 D_EXI 1 B1_EXI
Address 04H
0 B2_EXI
Value after reset: 00H
D_RMR
D_ch Receive Message Ready
A 64-byte data is available in the D_RFIFO. The frame is not complete yet. D_RME D_ch Receive Message End
The last part of a frame with length > 32 bytes or a whole frame with length 32 bytes has been received. The whole frame length is obtained from D_RBCH + D_RBCL registers. The length of data in the D_RFIFO equals: data length = RBC4-0 data length = 32 D_XFR if RBC4-0 0 if RBC4-0 = 0
D_ch Transmit FIFO Ready
This bit indicates that the transmit FIFO is ready to accept data. Up to 32 bytes of data can be written into the D_XFIFO. An D_XFR interrupt is generated in the following cases: - Ater an XMS command, when 32 bytes of XFIFO is empty - After an XMS together with an XME command is issued, when the whole frame has been transmitted - After an XRST command - After hardware reset or software reset INT1 INT1 Interrupt
If the INT1 bit is set to "1", this bit indicates that interrupt trigger occurs at INT1 pin. INT0 INT0 Interrupt
If the INT0 bit is set to "1", this bit indicates that interrupt trigger occurs at INT0 pin. D_EXI D_ch Extended Interrupt
This bit indicates that at least one interrupt bit is set in D_EXIR register. Note: A read of the ISTA register clears all bits except D_EXI, D_EXI bit is cleared when all bits in D_EXIR register are cleared. B1_EXI B1_ch Extended Interrupt
This bit indicates that at least one interrupt bit has been set in B1_EXIR register. - 54 -
W6691
B2_EXI B2_ch Extended Interrupt
This bit indicates that at least one interrupt bit has been set in B2_EXIR register.
8.7.6
7
Interrupt Mask Register
6 D_RME 5 D_XFR
IMASK Read/Write
4 INT1 3 INT0 2
Address 05H
1 B1_EXI 0 B2_EXI
Value after reset: FFH
D_RMR
D_EXI
Setting the bit to "1" masks the corresponding interrupt source in ISTA register. Masked interrupt status bits are read as zero. They are internally stored and pending until the mask bits are zero. Note: Setting the D_EXI bit to "1" masks the interrupts in D_EXIR register.
8.7.7
7
D_ch Extended Interrupt Register
6 XDUN 5 XCOL 4 TIN2 3 GCI
D_EXIR
2 ICC
Read_clear
1 T1EXP 0 SCC
Address 06H
Value after reset: 00H
RDOV
RDOV
Receive Data Overflow
Frame overflow (too many short frames) or data overflow occurs in the receive FIFO. In data overflow, the incoming data will overwrite the data in the receive FIFO. If RDOV interrupt occurs, software has to reset the receiver and discard the data received. XDUN Transmit Data Underrun
This interrupt indicates the D_XFIFO has run out of data. In this case, the W6691 will automatically reset the transmitter and send the inter frame time fill pattern (all 1's) on D channel. The microprocessor must wait until transmit FIFO ready (via XFR interrupt), re-write data, and issue XMS command to re-transmit the data. XCOL Transmit Collision
This bit indicates a collision on the S-bus has been detected. W6691 will automatically reset the transmitter and software must wait until transmit FIFO ready (via XFR interrupt), then, re-write data, and issue XMS command to re-transmit the data. TIN2 Timer 2 Expiration
This bit is set when Timer 2 counts down to zero. GCI GCI Interrupt
This bit is set when at least one bit is set in GCI_EXIR register. ICC Indication Channel Change Publication Release Date: June 11, 2003 Revision 1.5
- 55 -
W6691
A change in the layer 1 indication code is detected. The actual value can be read from CIR registers. T1EXP Timer 1 Expiration
Expiration occurs in the Timer 1. SCC S Channel Change
A change in multi-frame S channel is detected. The actual value can be read from SQR registers.
8.7.8
7 RDOV
D_ch Extended Interrupt Mask Register
6 XDUN 5 XCOL 4 TIN2 3 GCI 2 ICC
D_EXIM
1 T1EXP
Read/Write
0 SCC
Address 07H
Value after reset: FFH
Setting the bit to "1" masks the corresponding interrupt source in D_EXIR register. Masked interrupt status bits are read as zero. They are internally stored and pending until the mask bits are zero.
Note: All the interrupts in D_EXIR will be masked if the IMASK:D_EXI bit is set to "1".
8.7.9
7 XDOW
D_ch Transmitter Status Register
6 0 5 XBZ 4 0 3 0
D_XSTA
2 0 1 0
Read
0 0
Address 0AH
Value after reset: 00H
XDOW
Transmit Data Overwritten
At least one byte of data has been overwritten in the D_XFIFO. This bit is set by data overwritten condition and is cleared only by XRST command. XBZ Transmitter Busy
This bit indicates the D_HDLC transmitter is busy. The XBZ bit is set to"1" from the transmission of opening flag to the transmission of closing flag.
8.7.10 D_ch Receive Status Register
Value after reset: 20H 7 0 RDOV 6 RDOV 5 CRCE 4 RMB 3 0
D_RSTA
2 0 1 0
Read
0 0
Address
0BH
Receive Data Overflow
A "1" indicates that the D_RFIFO is overflow. The incoming data will overwrite data in the receive FIFO. The data overflow condition will set both the status and interrupt bits. It is recommended that software must read the RDOV bit after reading data from D_RFIFO when RMR or RME interrupt - 56 -
W6691
occurs. The software must abort the data and issue a RRST command to reset the receiver if RDOV = 1. The frame overflow condition will not set this bit.
CRCE
CRC Error
This bit indicates the result of frame CRC check: 0: CRC correct 1: CRC error
RMB
Receive Message Aborted
A "1" means that a sequence of seven 1's was received and the frame is aborted. Software must issue RRST command to reset the receiver.
Note: Normally D_RSTA register should be read by the microprocessor after a D_RME interrupt. The contents of D_RSTA are valid only after a D_RME interrupt and remain valid until the frame is acknowledged via a RACK bit.
8.7.11 D_ch SAPI Address Mask
Value after reset: 00H 7 SAM7 6 SAM6 5 SAM5 4 SAM4
D_SAM
3 SAM3 2 SAM2
Read/Write
1 SAM1 0
Address 0EH
SAM0
This register masks(disables) the first byte address comparison of the incoming frame. If the mask bit is "1" the corresponding bit comparisons with D_SAP1, D_SAP2 are disabled. Comparison with SAPG is always performed. Each HDLC frame has two address byte. The first byte is SPAI and second byte is TEI. The D_ch HDLC controller will compare these two bytes with contents of D_SAPI1, DSAP2 and D_TEI1, D_TEI2. If the HDLC frame SAPI matches D_SAPI1 or D_SAP2 and the HDLC frame TEI matches D_TEI1 or D_TEI2, the HDLC frame is captured and stored in D_channel receiving FIFO. If comparison operation is enabled (This means that the more than one bit in D_SAM is set to "1"), except the frame with matching address is stored, others are discarded. If comparison operation is disabled (This means that the all bits in D_SAM are set to "0"), all frame with any address combination are captured and stored in receiving FIFO. The mask operation can be programmed by each bit respectively. The HDLC frame with SAPG and /or TEIG address are always captured and stored.
Note: For the LAPD frame, the least significant two bits are the C/R bit and EA = 0 bit. It is suggested that the comparison with C/R bit be masked. EA = 0 for two octet address frame e.g LAPD, EA = 1 for one octet address frame.
- 57 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
8.7.12 D_ch SAPI1 Register D_SAP1
Value after reset: 00H 7 SA17 6 SA16 5 SA15 4 SA14 3 SA13 2 SA12 1 SA11 0 SA10
Read/Write
Address 0FH
This register contains the first choice of the first byte address of received frame. For LAPD frame, SA17 - SA12 is the SAPI value, SA11 is C/R bit and SA10 is zero.
8.7.13 D_ch SAPI2 Register
Value after reset: 00H 7 SA27 6 SA26 5 SA25 4 SA24
D_SAP2
3 SA23 2 SA22
Read/Write
1 SA21 0
Address 10H
SA20
This register contains the second choice of the first byte address of received frame. For LAPD frame, SA27 - SA22 is the SAPI value, SA21 is C/R bit and SA20 is zero.
8.7.14 D_ch TEI Address Mask
Value after reset: 00H 7 TAM7 6 TAM6 5 TAM5 4 TAM4
D_TAM
3 TAM3 2 TAM2
Read/Write
1 TAM1 0
Address 11H
TAM0
This register masks (disables) the second byte address comparison of the incoming frame. If the mask bit is "1" the corresponding bit comparisons with D_TEI1, D_TEI2 are disabled. The HDLC frame with SAPG and /or TEIG address are always captured and stored.
Note: For the LAPD frame, the least significant bit is the EA =1 bit.
8.7.15 D_ch TEI1 Register
Value after reset: 00H 7 TA17 6 TA16 5 TA15
D_TEI1 Read/Write
4 TA14 3 TA13 2 TA12 1 TA11
Address 12H
0 TA10
TA17 - TA10 This register contains the first choice of the second byte address of received frame. For LAPD frame, TA17 - TA11 is the TEI value, TA10 is EA = 1.
- 58 -
W6691
8.7.16 D_ch TEI2 Register
Value after reset: 00H 7 TA27 6 TA26 5 TA25 4 TA24 3 TA23 2 TA22 1 TA21 0 TA20
D_TEI2 Read/Write
Address 13H
TA27 - TA20 This register contains the second choice of the second byte address of received frame. For LAPD frame, TA27 - TA21 is the TEI value, TA20 is EA = 1.
8.7.17 D_ch Receive Frame Byte Count High
Value after reset: 40H 7 VN1 6 VN0 5 LOV 4 3 2
D_RBCH
1 RBC9 0
Read Address 16H
RBC12 RBC11 RBC10
RBC8
VN1-0
Chip Version Number
This is the chip version number. It is read as 01B. LOV Length Overflow
A "1" in this bit indicates 8192 bytes are received and the frame is not yet complete. This bit is valid only after a D_RME interrupt and remains valid until the frame is acknowledge via the RACK command. RBC12-8 Receive Byte Count
These bits are five most significant bits of the total frame length. These bits are valid only after a D_RME interrupt and remain valid until the frame is acknowledge via the RACK command.
8.7.18 D_ch Receive Frame Byte Count Low
Value after reset: 00H 7 RBC7 6 RBC6 5 RBC5 4 RBC4 3 RBC3 2 RBC2
D_RBCL
1 RBC1
Read
0 RBC0
Address 17H
RBC7-0
Receive Byte Count
These bits are eight least significant bits of the total frame length. Bits RBC4-0 also indicate the length of the data currently available in D_RFIFO. These bits are valid only after an D_RME interrupt and remain valid until the frame is acknowledged via the RACK command. Publication Release Date: June 11, 2003 Revision 1.5
- 59 -
W6691
8.8 GCI Bus Register Description
8.8.1
7 0
Channel Selection Register
6 0 5 0 4 0 3 0
CSEL
2 CSEL2 1
Read/Write
0 CSEL0
Address 18H
Value after reset: 00H
CSEL1
CSEL2, CSEL1 and CSEL0 define W6691 locating in GCI channel number operated in LT-S/ LT-T mode.
8.8.2
Command/Indication Receive Register
7 0 6 0 5 0 4 BAS 3
CIR
Read
2 CODR2 1
Address 1AH
0 CODR0
Value after reset: 0FH
CODR3
CODR1
BAS Bus Access Status
Indicate the state of the TIC -bus:
1: W6691 itself occupies the D and C/I channel. 0: Another device occupies the D channel and C/I channel.
CODR3-0
Layer 1 Indication Code
Value of the received layer 1 indication code. Note these bits have a buffer size of two. If TE mode is selected, CODR3-0 bits are CI0 bits in GCI bus channel.
8.8.3
7 0
Command/Indication Transmit Register
6 0 5 0 4 BAC 3 CODX3 2
CIX
Read/Write
1 CODX1 0 CODX0
Address 1BH
Value after reset: 0FH
CODX2
BAC Bus Access Control It is available if TIC bus function is active. If this bit is set to "1", W6691 will try to access the TIC-bus to occupy the C/I channel even if no D channel frame has to be transmitted. It should be reset when the access has been completed to grant a similar access to the other devices transmitting in that GCI channel.
- 60 -
W6691
CODX3-0 Layer 1 Command Code
Value of the command code is transmitted to layer 1. If TE mode is selected, CODX3-0 bits are CI0 bit in GCI bus channel. Reading this register returns the previous written value.
8.8.4
7 0
S/Q Channel Receive Register
6 0 5 MSYN 4 0 3 S1
SQR
2
Read Address 1CH
1 S3 0 S4
Value after reset: XXH
S2
MSYN
Multiframe Synchronization
When this bit is "1", a multiframe synchronization is achived, i.e the S/T receiver has synchronized to the received FA and M bit patterns. S1-4 Received S Bits These are the S bits received in NT to TE direction in frames 1, 6, 11 and 16. S1 is in frame 1, S2 is in frame 6 etc. These four bits are double buffered.
8.8.5
7 0 Q1-4
S/Q Channel Transmit Register
6 0 5 0 4 0 3 Q1
SQX
2
Read/Write
1 Q3
Address 1DH
0 Q4
Value after reset: 0FH
Q2
Transmitted Q Bits
These are the transmitted Q channels in FA bit positions in frames 1, 6, 11 and 16. Q1 is in frame 1 and Q2 is in frame 6 etc. Reading this register returns the previous written value.
8.8.6
7
Monitor Receive Channel 0
6 5 4 3
MO0R
2
Read Address 20H
1 0
Value after reset: FFH
Contains the Monitor channel data received in GCI Monitor channel 0 according to the Monitor channel protocol.
- 61 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
8.8.7
7
Monitor Transmit Channel 0
6 5 4 3
MO0X
2
Read/Write
1 0
Address 21H
Value after reset: FFH
Contains the Monitor channel data transmitted in GCI Monitor channel 0 according to the Monitor channel protocol.
8.8.8
7 0 MDR0 MER0 MDA0 MAB0
Monitor Channel 0 Interrupt Register
6 0 5 0 4 0 3 MDR0 2
MO0I
Read_clear
1 MDA0 0 MAB0
Address 22H
Value after reset: 00H
MER0
Monitor channel 0 Data Receive Monitor channel 0 End of Reception Monitor channel 0 Data Acknowledged The remote end has acknowledged the Monitor byte being transmitted. Monitor channel 0 Data Abort
8.8.9
7 0 MRE0
Monitor Channel 0 Control Register MO0C
6 0 5 0 4 0 3 MRE0 2 MRC0
Read/Write
1 MIE0 0 MXC0
Address
23H
Value after reset: 00H
Monitor Channel 0 Receive Interrupt Enable
Monitor channel interrupt status MDR0, MER0 generation is enabled (1) or masked (0). MRC0 "E" Bit Control
Determines the value of the "E" bit: 0: "E" bit always "1". In addition, the MDR0 interrupt is blocked, except for the first byte of a packet (if MRE0 = 1). 1: "E" bit is internally controlled by the W6691 according to Monitor channel protocol. In addition, the MDR0 interrupt is enabled for all received bytes according to the Monitor channel protocol (if MRE0 = 1).
- 62 -
W6691
MIE0 Monitor channel 0 Transmit Interrupt Enable
Monitor interrupt status MDA0, MAB0 generation is enabled (1) or masked (0). MXC0 "A" bit Control
Determines the value of the "A" bit: 0: "A" bit is always 1. 1: "A" bit is internally controlled by W6691 according to Monitor channel protocol.
8.8.10 GCI Mode Control/Status Register
Value after reset: 00H 7 MAC0 MAC0 6 MAC1 5 0 4 0
GCR
3
0
Read
2 0
Address 26H
1 0 0 0
Monitor Transmit Channel 0 Active (Read Only)
Data transmission is in progress in GCI mode Monitor channel 0. 0: the previous transmission has been terminated. Before starting a transmission, the microprocessor should verify that the transmitter is inactive. 1: after having written data into the Monitor Transmit Channel 0 (MO0X) register, the microprocessor sets this bit to 1. This enables the "A" bit to go active (0), indicating the presence of valid Monitor channel data (contents of MOX) in the corresponding frame. MAC1 Monitor Transmit Channel 1 Active (Read Only)
Data transmission is in progress in GCI mode Monitor channel 1. 0: the previous transmission has been terminated. Before starting a transmission, the microprocessor should verify that the transmitter is inactive. 1: after having written data into the Monitor Transmit Channel 1 (MO1X) register, the microprocessor sets this bit to 1. This enables the "A" bit to go active (0), indicating the presence of valid Monitor channel data (contents of MOX) in the corresponding frame.
8.8.11 Monitor Receive Channel 1 Register MO1R
Value after reset: FFH 7 6 5 4 3 2
Read Address 27H
1 0
Contains the Monitor channel data received in GCI Monitor channel 1 according to the Monitor channel protocol.
- 63 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
8.8.12 Monitor Transmit Channel 1 Register
Value after reset: FFH 7 6 5 4 3 2 1 0
MO1X
Read/Write
Address 28H
Contains the Monitor channel data transmitted in GCI Monitor channel 1 according to the Monitor channel protocol.
8.8.13 Monitor Channel 1 Interrupt Register
Value after reset: 00H 7 0 MDR1 MER1 MDA1 MAB1 6 0 5 0 4 0 3 MDR1 2
MO1I
Read_clear
1 MDA1 0 MAB1
Address 29H
MER1
Monitor channel 1 Data Receive Monitor channel 1 End of Reception Monitor channel 1 Data Acknowledged The remote end has acknowledged the Monitor byte being transmitted. Monitor channel 1 Data Abort
8.8.14 Monitor Channel 1 Control Register MO1C
Value after reset: 00H 7 0 MRE1 6 0 5 0 4 0 3 MRE1 2 MRC1
Read/Write
1 MIE1 0 MXC1
Address 2AH
Monitor Channel 1 Receive Interrupt Enable
Monitor channel interrupt status MDR1, MER1 generation is enabled (1) or masked (0). MRC1 "E" Bit Control byte of a packet
Determines the value of the "E" bit: 0: "E" bit is always 1. In addition, the MDR1 interrupt is blocked, except for the first (if MRE1 = 1).
1: "E" bit is internally controlled by the W6691 according to Monitor channel protocol. In addition, the MDR1 interrupt is enabled for all received bytes according to the Monitor channel protocol (if MRE1=1).
- 64 -
W6691
MIE1 Monitor channel 1 Transmit Interrupt Enable
Monitor interrupt status MDA1, MAB1 generation is enabled (1) or masked (0). MXC1 "A" bit Control
Determines the value of the "A" bit: 0: "A" bit isalways 1. 1: "A" bit internally controlled by the W6691 according to Monitor channel protocol.
8.8.15 GCI CI1 Indication Register
Value after reset: Undefined 7
0
CI1R
3 CI1R_4 2 CI1R_3
Read
1 CI1R_2 0 CI1R_1
Address 31H
6
0
5 CI1R_6
4 CI1R_5
CI1R_6-1 Input data of GCI CI1 channel. CI1R is only used in TE mode selected. Example application is data of ARCOFI's Peripheral Control Interface input pins.
8.8.16 GCI CI1 Command Register
Value after reset: 3FH 7 0 CI1X6_1 6 0 5 CI1X_6 4 CI1X_5 3 CI1X_4
CI1X
2 CI1X_3
Read/Write
1 CI1X_2 0 CI1X_1
Address 32H
Transmitted data of GCI CI1 channel. CI1R is only used in TE mode selected. A read to these bits returns the previously written value. Example application is data of ARCOFI's Peripheral Control Interface output pins.
8.8.17 GCI Extended Interrupt Register
Value after reset: 00H 7 0 MO1C 6 0 5 0 4 MO1C 3
GCI_EXIR
2 0
Read_clear
1 0 0 CI1
Address 34H
MO0C
Monitor Channel 1 Status Change
A change in the Monitor Channel 1 Interrupt register (MO1I) has occurred. A new Monitor channel byte is stored in the MO1R register.
- 65 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
MO0C Monitor Channel 0 Status Change
A change in the Monitor Channel 0 Interrupt register (MO0I) has occurred. A new Monitor channel byte is stored in the MO0R register. CI1 CI1 Synchronous Transfer Interrupt
When enabled, an interrupt is generated when there is a change in the received CIR1_6-1 code without double last look criterion. It is only used in TE-mode.
8.8.18 GCI Extended Interrupt Mask Register
Value after reset: F7H 7 1 6 1 5 1 4 MO1C 3 0
GCI_EXIM
2 0 1 0
Read/Write
0 CI1
Address 35H
Bit 7-5 are fixed at "1" and bit 3 is fixed at '0". This means MO0C interrupt cannot be masked. The interrupt is disabled when the bit is set.
8.9 Miscellaneous Register
8.9.1
7 T1MD
Timer 1 Register
6 CNT6 5 CNT5
TIMR1
4 CNT4 3 CNT3
Read/Write
2 CNT2 1
Address 38H
0 CNT0
Value after reset: 00H
CNT1
T1MD
Timer1 Mode
0 = Single Count Down Mode: The timer counts once and generates a T1EXP interrupt when expires. 1 = Periodical Count Down Mode: The timer counts periodically and generates an T1EXP interrupt at each expiration. CNT6-0 Count Value
The expiration time is defined as: T1 = CNT[6:0] * 0.1 second After writing this register, STT1 bit in D_CMDR register must be set to start the timer. This register can be read only after the timer has been started. The read value indicates the timer's current count value. In case layer 1 is not activated, a C/I command "ECK" must be issued in addition to the STT1 command to start the timer.
Note: The timer is stopped when it expires in Single Count Down Mode(T1MD = 0) or TIMR1 register is re-written in both mode.
- 66 -
W6691
8.9.2
7 TMD TMD
Timer 2
6 TIDLE 5
TIMR2
4 TCN4
Read/ Write
3 TCN3 2 TCN2
Address
1 TCN1 0
39H
Value after reset: 00H
TCN5
TCN0
Timer 2 Mode
0: Single Count Down mode: The timer starts when it is written a non-zero count value and stops when it reaches zero. 1: Periodical Count Down Mode: The timer starts when it is written a non-zero count value and counts down cyclically (periodically) with the count value. In both cases, a maskable interrupt TIN2 is generated every time the timer reaches zero. When timer starts, pin TOUT2 changes to HIGH and toggles every half count time. Therefore, the period of TOUT2 equals count value. In both cases, timer counts with the new value if it is written again before expiration. The timer is stopped when it expires in single count mode (TMD = 0), or zero count value is written in TCN5-0 (TMD = 0 or 1). TIDLE TOUT2 Idle
This bit defines value of TOUT2 pin when timer is off. That is to say, the TIDLE determine the TOUT2 pin level is high or low when timer2 is off. TCN5-0 Timer 2 Count Value
0: Timer is off. 1 - 63: Timer count value in unit of ms.
8.9.3
7 0
Peripheral Control Register PCR
6 0 5 0 4 0
Read/Write
3 OE3
Address 3AH
2 OE2 1 OE1 0 OE0
Value after reset: 00H
Only for PLCC 68 pins: OE3 Direction Control for IO3
0: Pin IO3's output driver is disabled and input driver is enabled 1: Pin IO3's output driver is enabled.
Note: The ACLT2: INT1M bit should be set to "0", INT1/IO3 pin can be as IO. Otherwise, It is configured as interrupt input.
- 67 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
OE2 Direction Control for IO2
0: Pin IO2's output driver is disabled and input driver is enabled 1: Pin IO2's output driver is enabled.
Note: The ACLT2: INT0M bit should be set to "0", INT0/IO2 pin can be as IO. Otherwise, It is configured as interrupt input.
OE1
Direction Control for IO1
0: Pin IO1's output driver is disabled and input driver is enabled 1: Pin IO1's output driver is enabled. OE0 Direction Control for IO0
0 : Pin IO0's output driver is disabled and input driver is enabled 1: Pin IO0's output driver is enabled.
8.9.4
7 0
Peripheral I/O Data Register PIODR
6 0 5 0 4 0 3 IO3
Read/Write
2 IO2 1 IO1
Address
0 IO0
3BH
Value after reset: 00
Only for PLCC 68 pins: IO3 Read or Write Data of Pin IO3
On read operation, the present value of pin IO3 is read. On write operation, the data is driven to pin IO3 only if PCTL:OE3=1.
Note: The ACLT2: INT1M bit should be set to "0", INT1/IO3 pin can be as IO. Otherwise, It is configured as interrupt input.
IO2
Read or Write Data of Pin IO2
On read operation, the present value of pin IO2 is read. On write operation, the data is driven to pin IO2 only if PCTL:OE2=1.
Note: The ACLT2: INT0M bit should be set to "0", INT0/IO2 pin can be as IO. Otherwise, It is configured as interrupt input.
IO1
Read or Write Data of Pin IO1
On read operation, the present value of pin IO1 is read. On write operation, the data is driven to pin IO1 only if PCTL:OE1=1. IO0 Read or Write Data of Pin IO0
On read operation, the present value of pin IO0 is read. On write operation, the data is driven to pin IO0 only if PCTL:OE0=1.
- 68 -
W6691
8.9.5
7 0
SFCTL Switch Functional Control Register Read/Write
6 PGSWH 5 PCRLP 4 PXC 3 B2SW1 2 B2SW0
Address 3CH
1 B1SW1 0 B1SW0
Value after reset: 00H
PGSWH
PCM and GCI bus Switch
Determines the CODEC interface is to be operated in B channel. 1: PCM bus is selected to operate with CODEC. 0: GCI bus is selected to operate with CODEC. PCRLP PCM Remote Loop Back
Setting this bit activates the PCM channel remote loopback function. The transmitted PCM data to PCM channel are looped to received PCM channel. PXC PCM Cross-connect
This bit determines whether or not the PCM ports are cross-connected with the B channel ports. The setting of PXC is independent of the BSW1-0 bits. PXC 0 1 Connection PCM1 B1, PCM2 B2 PCM1 B2, PCM2 B1
B2SW1/B2SW0
B2 channel Switch
These two bits determine B2 channel switch among PCM port, GCI and Layer2. 00: Select B2 channel switch between Layer2 and Layer1/GCI. 01: Select B2 channel switch between Layer1/GCI and PCM. 10: Select B2 channel switch between PCM and Layer2. B1SW1 / B1SW0 B1 channel Switch
These two bits determine B1 channel switch among PCM port, GCI and Layer2. 00: Select B1 channel switch between Layer2 and Layer1/GCI. 01: Select B1 channel switch between Layer1/GCI and PCM. 10: Select B1 channel switch between PCM and Layer2.
- 69 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
8.9.6
7 0 SRST
ACTL1 Auxiliary Control Register 1
6 0 Software Reset 5 SRST 4 0 3 0
Read/Write
2 0
Address 3DH
1 OPS1 0 OPS0
Value after reset: 00H
When this bit is set to "1" 1ms at least, a software reset signal is activated. The effect of the reset signal is same as the hardware reset. This bit is not auto-clear, the software must write "0" to this bit to exit from the reset mode. Note: When SRST = 1, the chip is in reset state. Read or write to any of the registers is inhibited at this moment. OPS1-0 Output Phase Delay Compensation Select1-0
These two bits select the output phase delay compensation.
OPS1 OPS0 EFFECT
0 0 1 1
0 1 0 1
No output phase delay compensation Output phase delay compensation 260nS Output phase delay compensation 520 nS Output phase delay compensation 1040 nS
8.9.7
7 0
ACTL2
Auxiliary
6 5
Control Register2
4 0
Read/Write
3 SPU 2 0
Address 3EH
1 0 0 0
Value after reset: 40H ACTL1S LC
ACLT1S
Activate Layer1 Status
0: When Layer 1 operates in activate state, ACTL1S pin is pulled to low level. In contrast, if Layer 1 operates in deactivate state, ACTL1S pin is driven to high level. 1: The ACTL1 output level is programmed by microprocessor.(ACTL2 : ACLT1S) LC LED Controlled
If ACLTS1is set to "1", LC bit is programmable by microprocessor. 0: It shows ACTLS1 pin is driven to high level. 1: It shows ACTLS1 pin is driven to low level. SPU: Software Power UP
If SPU is set to "1", W6691 can awaked from power down mode.
- 70 -
W6691
8.9.8
7 0
ACTL3
6
Auxiliary Control Register 3
5 0 4 0 3 0
Read/Write
2 0
Address 3FH
1 0 0 0
Value after reset: 00H
INTOL
INTOL Interrupt
Output Level Configuration
0: It shows INT pin is low active (open drain). 1: It shows INT pin is high active.
8.10 B1 Channel HDLC Controller Register Address MAP
TABLE 8.7 B1 CHANNEL HDLC CONTROLLER REGISTER ADDRESS MAP Offset 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F R_clear B1_EXIR R/W R R/W R/W R/W R/W R R R/W B1_EXIM B1_STAR B1_ADM1 B1_ADM2 B1_ADR1 B1_ADR2 B1_RBCL B1_RBCH B1_IDLE R/W R/W B1_CMDR B1_MODE Access R W Register Name B1_RFIFO B1_XFIFO Description B1 channel receive FIFO B1 channel transmit FIFO Reserved B1 channel command register B1 channel mode control Reserved B1 channel extended interrupt B1 channel extended interrupt mask B1 channel status register B1 channel address mask 1 B1 channel address mask 2 B1 channel address 1 B1 channel address 2 B1 channel receive frame byte count low B1 channel receive frame byte count high B1 channel transmit idle pattern
- 71 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
8.11 B1 Channel HDLC Controller Register Memory Map
TABLE 8.8 B1 CHANNEL HDLC CONTROLLER REGISTER MEMORY MAP Offset R/W 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F R_clr B1_EXIR R/W R R/W R/W R/W R/W R R R/W B1_EXIM B1_STAR B1_ADM1 B1_ADM2 B1_ADR1 B1_ADR2 B1_RBCL B1_RBCH B1_IDLE 0 1 0 MA17 MA27 RA17 RA27 RBC7 0 IDLE7 RMR RMR RDOV MA16 MA26 RA16 RA26 RBC6 0 IDLE6 RME RME CRCE MA15 MA25 RA15 RA25 RBC5 LOV IDLE5 R/W R/W B1_CMDR B1_MODE RACK MMS RRST ITF 0 RACT R W Name B1_RFIFO B1_XFIFO Reserved 0 XACT RDOV RDOV RMB MA14 MA24 RA14 RA24 RBC4 IDLE4 0 B1_128 0 1 0 MA13 MA23 RA13 RA23 RBC3 IDLE3 XMS SW56 0 1 XDOW MA12 MA22 RA12 RA22 RBC2 IDLE2 XME FTS1 XFR XFR 0 MA11 MA21 RA11 RA21 RBC1 RBC9 IDLE1 XRST FTS0 XDUN XDUN XBZ MA10 MA20 RA10 RA20 RBC0 RBC8 IDLE0 7 6 5 4 3 2 1 0
Reserved
RBC12 RBC11 RBC10
8.11.1 B1_ch receive FIFO
B1_RFIFO
Read
Address 50H
The B1_RFIFO is a 128-byte depth FIFO memory with programmable threshold. The threshold value determines when to generate an interrupt. When more than a threshold length of data has been received, a RMR interrupt is generated. After an RMR interrupt, 64 or 96 bytes can be read out, depending on the threshold setting. In transparent mode, when the end of frame has been received, a RME interrupt is generated. After an RME interrupt, the number of bytes available is less than or equal to the threshold value.
8.11.2 B1_ch transmit FIFO
B1_XFIFO
Write
Address 51H
The B1_XFIFO is a 128-byte depth FIFO with programmable threshold value. The threshold setting is the same as B1_RFIFO. When the number of empty locations is equal to or greater than the threshold value, a XFR interrupt is generated. After a XFR interrupt, up to 64 or 96 bytes of data can be written into this FIFO for transmission.
- 72 -
W6691
8.11.3 B1_ch command register
Value after reset: 00H 7 RACK RACK 6 RRST 5 0 4 0 3 0 2 XMS 1 XME 0 XRST
B1_CMDR
Read/Write
Address 53H
Receive Message Acknowledge
After a RMR or RME interrupt, the microprocessor reads out the data in B1_RFIFO, it then sets this bit to explicitly acknowledge the interrupt. This bit is write only. It's auto-clear. Writing "0" to this bit has no effect. If RACK bit is set to "1" for operating "Receiver Acknowledge", It is not necessary to reset RACK bit to "0" by host processor. That is to say, once RACK is set to "1", RACK bit is reset to "0" by W6691 automatically.
RRST
Receiver Reset
Setting this bit resets the B1_ch HDLC receiver. This bit is write-only. It's auto-clear. Writing "0" to this bit has no effect. If RRST bit is set to "1" for operating "Receiver Reset", It is not necessary to reset RRST bit to "0" by host processor. That is to say, once RRST is set to "1", RRST bit is reset to "0" by W6691 automatically.
XMS
Transmit Message Start/Continue
In transparent mode, setting this bit initiates the transparent transmission of B1_XFIFO data. The opening flag is automatically added to the message by the B1_ch HDLC controller. Zero bit insertion is performed on the data. This bit is also used in subsequent transmission of the frame. In extended transparent mode, settint this bit activates the transmission of B1_XFIFO data. No flag, CRC or zero bit insertion is added on the data. This bit is write-only. It's auto-clear. Writing "0" to this bit has no effect. If XMS bit is set to "1" for operating "Transmit Message Start/Continue", It is not necessary to reset XMS bit to "0" by host processor. That is to say, once XMS is set to "1", XMS bit is reset to "0" by W6691 automatically. XME Transmit Message End
In transparent mode, setting this bit indicates the end of the whole frame transmission. The B1_ch HDLC controller transmits the data in FIFO and automatically appends the CRC and the closing flag sequence in transparent mode. In extended transparent mode, setting this bit stops the B1_XFIFO data transmission. This bit is write-only. It's auto-clear.
- 73 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
XRST Transmitter Reset
Setting this bit resets the B1_ch HDLC transmitter and clears the B1_XFIFO. The transmitter will send inter frame time fill pattern on B channel in transparent mode, or idle pattern in extended transparent mode. This command also results in a transmit FIFO ready condition. This bit is write only. It's auto-clear.
8.11.4 B1_ch Mode Register B1_MODE
Value after reset: 00H 7 MMS MMS 6 ITF 5 RACT 4 XACT 3
Read/Write
2 SW56 1 FTS1
Address
0 FTS0
54H
B1_128K
Message Mode Setting
Determines the message transfer modes of the B1_ch HDLC controller: 0: Transparent mode. In received direction, address comparison is performed on each frame. The frames with matched address are stored in B1_RFIFO. Flag deletion, CRC check and zero bit deletion are performed. In transmitted direction, the data is transmitted with flag insertion, zero bit insertion and CRC generation. 1: Extended transparent mode. In received direction, all data are received and stored in the B1_RFIFO. In transmitted direction, all data in the B1_XFIFO are transmitted without alteration. ITF Inter-frame Time Fill
Defines the inter-frame time fill pattern in transparent mode. 0: Mark. The binary value "1" is transmitted. 1: Flag. This is a sequence of RACT Receiver Active "01111110".
"1": transmitter is active, 64 KHz clock is provided. "0": transmitter is inactive, clock is LOW to save power. This bit is read/write. Read operation returns the previously written value.
Note: The receiver is deactive after hardware reset or software reset.
XACT
Transmitter Active
"0": transmitter is active, 64 KHz clock is provided. "1": transmitter is inactive, clock is LOW to save power. This bit is read/write. Read operation returns the previously written value.
Note: The transmitter is deactive after hardware reset or software reset.
- 74 -
W6691
B1_128 128K Mode
"1": Both B1 and B2 channels in layer 1 are combined into single layer 2 channel. The layer 2 B1 channel can operates in transparent mode or extended transparent mode and layer 2 B2 channel is not used. "0": Both B1 and B2 channels in layer 1 are not combined. This bit is read/write. Read operation returns the previously written value. SW56 Switch 56 Traffic
0: The data rate in B1 channel is 64 Kbps. 1: The data rate in B1 channel is 56 Kbps. The most significant bit in each octet is fixed at "1".
Note: In 56 Kbps mode, only transparent mode can be used.
FTS1-0
FIFO Threshold Select
These two bits determine the B1 channel receive and transmit FIFO's threshold setting. An interrupt is generated when the number of received data or the number of vacancies in XFIFO reaches the threshold value. FTS1 0 0 1 1 FTS0 0 1 0 1 Threshold (byte) 64 Reserved 96 Not allowed
8.11.5 B1_ch Extended Interrupt Register B1_EXIR
Value after reset: 00H 7 0 RMR 6 RMR 5 RME 4 RDOV 3 0 2 0 1 XFR
Read_clear
0 XDUN
Address 56H
Receive Message Ready
At least a threshold lenth of data has been stored in the B1_RFIFO. RME Receive Message End
Used in transparent mode only. The last block of a frame has been received. The frame length can be found in B1_RBCH + B1_RBCL registers. The number of data available in the B1_RFIFO equals frame lenth modulus threshold. The result of CRC check is indicated by B1_STAR: CRCE bit. When the number of last block of a frame equals the threshold, only RME interrupt is generated.
- 75 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
RDOV Receive Data Overflow
Data overflow occurs in the receive FIFO. The incoming data will overwrite the data in the receive FIFO. XFR Transmit FIFO Ready
This interrupt indicates that up to a threshold length of data can be written into the B1_XFIFO. XDUN Transmit Data Underrun
This interrupt occurs when the B1_XFIFO has run out of data. In this case, the W6691 will automatically reset the transmitter and send the inter frame time fill pattern on B channel. The software must wait until transmit FIFO ready condition (via XFR interrupt), re-write data, and issue XMS command to re-transmit the data.
8.11.6 B1_ch Extended Interrupt Mask Register
Value after reset: FFH 7 1 6 RMR 5 RME 4 RDOV 3 1 2 1
B1_EXIM
1 XFR
Read/Write
0 XDUN
Address 57H
Setting the bit to "1" masks the corresponding interrupt source in B1_EXIR register. Masked interrupt status bits are read as zero when B1_EXIR register is read. They are internally stored and pending until the mask bits are zero. All the interrupts in B1_EXIR will be masked if the IMASK: B1_EXI bit is set to "1".
8.11.7 B1_ch Status Register
Value after reset: 20H 7 0 RDOV 6 RDOV 5 CRCE 4 RMB
B1_STAR
3 0
Read
2 XDOW
Address
1 0 0
58H
XBZ
Receive Data Overflow
A "1" indicates that the D_RFIFO is overflow. The incoming data will overwrite data in the receive FIFO. The overflow condition will set both the status and interrupt bits. It is recommended that software must read the RDOV bit after reading data from receive FIFO at RMR or RME interrupt. The software must abort the data and issue a RRST command to reset the receiver if RDOV = 1. CRCE CRC Error
Used in transparent mode only. This bit indicates the result of frame CRC check: 0: CRC correct 1: CRC incorrect
- 76 -
W6691
RMB Receive Message Aborted
Used in transparent mode only. A "1" means that a sequence of seven 1's was received and the frame is aborted by the B1_HDLC controller. Software must issue RRST command to reset the receiver.
Note: Bit CRCE is valid only after a RME interrupt and remains valid until the frame is acknowledged via RACK command. RMB must be polled after a RMR/RME interrupt.
XDOW
Transmit Data Overwritten This bit is cleared only by XRST
At least one byte of data has been overwritten in the B1_XFIFO. command. XBZ Transmitter Busy
The B1_HDLC transmitter is busy when XBZ is read as "1". This bit may be polled. The XBZ bit is active when an XMS command was issued and the message has not been completely transmitted.
8.11.8 B1_ch Address Mask Register 1
Value after reset: 00H 7 MA17 MA17-10 6 MA16 5 MA15 4 MA14 3 MA13
B1_ADM1
2 MA12 1
Read/Write
0 MA10
Address
59H
MA11
Address Mask Bits
Used in transparent mode only. These bits mask the first byte address comparisons. If the mask bit is "1", the corresponding bit comparison with B1_ADR1 is disabled. 0: Unmask comparison 1: Mask comparison
8.11.9 B1_ch Address Mask Register 2
Value after reset: 00H 7 MA27 MA27-20 6 MA26 5 MA25 4 MA24 3 MA23
B1_ADM2
2 MA22 1 MA21
Read/Write
0 MA20
Address 5AH
Address Mask Bits
Used in transparent mode only. These bits mask the second byte address comparisons. If the mask bit is "1", the corresponding bit comparison with B1_ADR2 is disabled. 0: Unmask comparison 1: Mask comparison
- 77 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
8.11.10 B1_ch Address Register 1 B1_ADR1
Value after reset: 00H 7 RA17 RA17-10 6 RA16 5 RA15 4 RA14 3 RA13 2 RA12 1 RA11 0 RA10
Read/Write
Address
5BH
Address Bits
Used in transparent mode only. These bits are used for the first byte address comparisons.
8.11.11 B1_ch Address Register 2 B1_ADR2
Value after reset: 00H 7 RA27 RA27-20 6 RA26 5 RA25 4 RA24 3 RA23 2 RA22
Read/Write
1 RA21 0
Address
5CH
RA20
Address Bits
Used in transparent mode only. These bits are used for the second byte address comparisons.
8.11.12 B1_ch Receive Frame Byte Count Low
Value after reset: 00H 7 RBC7 RBC7-0 6 RBC6 5 RBC5 4 RBC4 3 RBC3 2 RBC2
B1_RBCL
1 RBC1 0
Read Address
5DH
RBC0
Receive Byte Count
Used in transparent mode only. Eight least significant bits of the total number of bytes are in a received frame. These bits are valid only after a RME interrupt and remain valid until the frame is acknowledge via the RACK bit.
8.11.13 B1_ch Receive Frame Byte Count High
Value after reset: 00H 7 0 LOV 6 0 5 LOV 4 3 2
B1_RBCH
1 RBC9 0
Read Address
5EH
RBC12 RBC11 RBC10
RBC8
Message Length Overflow
Used in transparent mode only. A "1" in this bit indicates a received message 8192 bytes. This bit is valid only after RME interrupt and is cleared by the RACK command.
- 78 -
W6691
RBC12-8
Receive Byte Count
Used in transparent mode only. Five most significant bits of the total number of bytes are in a received frame. These bits are valid only after a RME interrupt and remain valid until the frame is acknowledge via the RACK bit.
Note: The frame length equals RBC12-0. This length is between 1 and 8191. After a RME interrupt, the number of data available in B1_RFIFO is frame length modulus threshold.
Remainder = RBC12-0 MOD threshold No of available data = remainder No of available data = threshold if remainder 0 or if remainder = 0
The remainder equals RBC5-0 if threshold is 64.
8.11.14 B1_ch Transmit Idle Pattern
Value after reset: FFH 7 IDLE7 IDLE7-0 6 IDLE6 5 IDLE5 4 IDLE4 3 IDLE3
B1_IDLE
2 IDLE2 1
Read/Write
0
Address 5FH
IDLE1
IDLE0
This pattern is transmitted when the transmitter is active and transmit FIFO is empty. Valid in extended transparent mode only.
- 79 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
8.12 B2 Channel HDLC Controller Register Address Map
TABLE 8.9 B2 CHANNEL HDLC CONTROLLER REGISTER ADDRESS MAP Offset 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F R_clear B2_EXIR R/W R R/W R/W R/W R/W R R R/W B2_EXIM B2_STAR B2_ADM1 B2_ADM2 B2_ADR1 B2_ADR2 B2_RBCL B2_RBCH B2_IDLE R/W R/W B2_CMDR B2_MODE Access R W Register Name B2_RFIFO B2_XFIFO Description B2channel receive FIFO B2 channel transmit FIFO Reserved B2 channel command register B2 channel mode control Reserved B2 channel extended interrupt B2 channel extended interrupt mask B2 channel status register B2 channel address mask 1 B2 channel address mask 2 B2 channel address 1 B2 channel address 2 B2 channel receive frame byte count low B2 channel receive frame byte count high B2 channel transmit idle pattern
- 80 -
W6691
8.13 B2 Channel HDLC Controller Register Memory Map
TABLE 8.10 B2 CHANNEL HDLC CONTROLLER REGISTER MEMORY MAP Offset R/W 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F R_clr B2_EXIR R/W R R/W R/W R/W R/W R R R/W B2_EXIM B2_STAR B2_ADM1 B2_ADM2 B2_ADR1 B2_ADR2 B2_RBCL B2_RBCH B2_IDLE 0 1 0 MA17 MA27 RA17 RA27 RBC7 0 IDLE7 RMR RMR RDOV MA16 MA26 RA16 RA26 RBC6 0 IDLE6 RME RME CRCE MA15 MA25 RA15 RA25 RBC5 LOV IDLE5 R/W R/W B2_CMDR B2_MODE RACK MMS RRST ITF 0 RACT R W Name B2_RFIFO B2_XFIFO Reserved 0 XACT RDOV RDOV RMB MA14 MA24 RA14 RA24 RBC4 RBC12 IDLE4 0 0 0 1 0 MA13 MA23 RA13 RA23 RBC3 RBC11 IDLE3 XMS SW56 0 1 XDOW MA12 MA22 RA12 RA22 RBC2 RBC10 IDLE2 XME FTS1 XFR XFR 0 MA11 MA21 RA11 RA21 RBC1 RBC9 IDLE1 XRST FTS0 XDUN XDUN XBZ MA10 MA20 RA10 RA20 RBC0 RBC8 IDLE0 7 6 5 4 3 2 1 0
Reserved
The B2 channel HDLC controller register's definitions and functions are the same as those of B1 channel HDLC. Please refer to B1 channel section for a detailed description.
- 81 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
9. ELECTRICAL CHARACTERISTICS
9.1 Absolute Maximum Rating
PARAMETER SYMBOL LIMIT VALUES UNIT
Voltage on any pin with respect to ground Ambient temperature under bias Maximum voltage on VDD
VS TA VDD
-0.4 to VDD +0.4 0 to 70 6
V C V
9.2 Power Supply
The power supply is 3.3V 5%.
9.3 DC Characteristics
TA = 0 to 70C; VDD = 3.3 V 5%, VSSA = 0 V, VSSD = 0 V
PARAMETER
SYM.
MIN.
MAX.
UNIT
TEST CONDITIONS
REMARKS
Low Input Voltage High Input Voltage Low Output Voltage High Output Voltage Analog Power Supply Current: Power Down Analog Power Supply Current: Activated Input Leakage Current Output Leakage Current Absolute Value of Output Pulse Amplitude (VSX2-VSX1) Transmitter Output Current Transmitter Output Impedance
Note:
1)
VIL VIH VOL VOH ICC
-0.4 2.0 2.4
0.8 VDD +0.4 0.4
V V V V IOL = 12 mA VDDA = 5V (internal power supply), S/T layer 1 in state "F3 Deactivated without clock" VDD = 3.3V, S/T layer 1 in state "F7 Activated" 0 V < VIN < VDD to 0V 0 V < VOUT < VDD to 0V RL = 50 1) RL = 400 1) RL = 5.6 1) Inactive or during binary ONE During binary ZERO (RL = 50 )
All pins except SX1, 2, SR1, 2 All pins except SX1, 2, SR1, 2 SX1, 2
1.5
mA
ICC ILI ILO 2.03 2.10 7.5 30 23
6.5 10 10 2.31 2.39 13.4
mA A A V V mA k
VX IX
SX1, 2
RX
SX1, 2
Due to the transformer, the load resistance seen by the circuit is four times RL.
- 82 -
W6691
Capacitances
TA = 25C, VDD = 3.3V 5%, VSSA = 0V, VSSD = 0V, fc=1 Mhz, unmeasured pins grounded.
PARAMETER
SYMBOL
MIN.
MAX.
UNIT
REMARKS
Input capacitance I/O pin capacitance Output capacitance against VSSA Input capacitance Load capacitance
CIN CIO COUT CIN CL
7 7 10 7 50
pF pF pF pF pF
All pins except SR1, 2 All pins except SR1, 2 SX1, 2 SR1, 2 XTAL1, 2
Recommended oscillator circuits Crystal specifications
PARAMETER SYMBOL VALUES UNIT
Frequency Frequency Calibration Tolerance Load Capacitance Oscillator Mode
F
7.680 Max. 100
MHz ppm pF
CL
Max. 50 Fundamental
Note: The load capacitance CL depends on the crystal specification. The typical values are 33 to 47 pF.
External ocsillator input (XTAL1) clock characteristics
PARAMETER MIN. MAX.
Duty cycle
1:2
2:1
- 83 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
9.4 Preliminary Switching Characteristics
9.4.1 PCM Interface Timing
9.4.1 PCM Interface Timing
PBCK (1.536MHz) 24 CHs PFCK1 CH 1 CH 2
PFCK2
PTXD
Port1
Port2
Port1
Port2
PRXD
Port1
Port2
Port1
Port2
Notes: 1. These drawings are not to scale. 2. The frequency of PBCK is 1536 KHz which includes 24 channels of 64 kbps data. The PFCK1 and PFCK2 are located at channel 1 and channel 2, each with a 8 x PBCK duration.
- 84 -
W6691
9.4.2 Detailed PCM Tming
ta1
ta2
PBCK
ta5 ta3 PFCK1 PFCK2
ta4 PTXD
ta6
ta7
PRXD
ta8
PARAMETER
PARAMETER DESCRIPTIONS
MIN.
NOMINAL
MAX.
REMARKS
ta1 ta2 ta3 ta4 ta5 ta6 ta7 ta8
Note:
PBCK pulse high PBCK pulse low Frame clock asserted from PBCK PTXD data delay from PBCK Frame clock deasserted from PBCK PTXD hold time from PBCK PRXD setup time to PBCK PRXD hold time from PBCK 10 20 10 195
325 325 455 20 20 20
Unit = nS
The PCM clocks are locked to the S/T receive clock. At every two or three PCM frame time (125 S), PBCK and PFCK1, PFCK2 may be adjusted by one local oscillator cycle (130 nS) in order to synchronize with S/T clock. This shift is made on the LOW level time of PBCK and the HIGH level time is not affected. This introduces jitters on the PBCK, PFCK1 and PFCK2 with jitter amplitude 260 ns (peak-to-peak) and jitter frequency about 2.67~4 KHz.
- 85 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
9.4.3
8-bit Microprocessor Timing
Intel Mode Read Cycle Timing
t1 t10
ALE
t2
t3
t9
AD<7:0>
A<7:0>
D<7:0>
A<7:0>
t6
t8
t7
CS#
t4
t5
t11
RD#
Intel Mode Write Cycle Timing
t1 t10
ALE
t2
t3
t15
AD<7:0>
A<7:0>
D<7:0>
A<7:0>
t6
t14
t7
CS#
t4
t12
t13
WR#
- 86 -
W6691
Motorola Mode Read Cycle Timing
A<7:0> t16 t17 t19 CS# t18 t20 DS# t21
t22 RW
t23
t24
D<7:0>
Motorola Mode Write Cycle Timing
A<7:0> t16 t17 t19 CS# t18 t26 DS# t27
t25 RW
t28
t29
D<7:0>
- 87 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
PARAMETER
PARAMETER DESCRIPTIONS
MIN.
MAX.
REMARKS
t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27 t28 t29
ALE pulse width Address setup time to ALE Address hold time from ALE Address setup time to RD#, WR# RD# pulse width CS# setup time to RD#, WR# CS# hold time from RD#, WR# Data output delay from RD# Data float from RD# ALE guard time RD# recovery time WR# pulse width WR# recovery time Data setup time to WR# Data hold time from WR# Address setup time to DS# Address hold time from DS# CS# setup time to DS# CS# hold time from DS# DS# read pulse width DS# read recovery time RW setup time to DS# read Data output delay from DS# Data hold time from DS# RW setup time to DS# write DS# write pulse width DS# write recovery time Write data setup time to DS# Write data hold time from DS#
50 15 10 0 110 0 0 50 25 15 70 60 70 35 10 25 10 10 10 110 70 0 110 25 0 60 70 35 10
- 88 -
W6691
9.5 AC Timing Test Conditions
TA = 0 to 70C, VDD = 3.3V 5%
Inputs are driven to 2.4 V for logical 1 and 0.4 V for logical 0. Measurements are made at 2.0 V for logical 1 and 0.8 V for logical 0. The AC testing input/output waveforms are shown below:
2.4
2.0
2.0
Device Under Test
Test Point
0.8
0.8
0.4
Cload= 150pF
10. ORDERING INFORMATION
PART NUMBER PACKAGE TYPE PRODUCTION FLOW
W6691
64-pin LQFP
Commercial, 0 C to +70 C
- 89 -
Publication Release Date: June 11, 2003 Revision 1.5
W6691
11. PACKAGE DIMENSIONS
64L LQFP (10 x 10 x 1.4 mm)
Symbol
Dimension in inch
Dimension in mm
Min. Nom. Max.
0.063 0.002 0.053 0.007 0.004 0.393 0.393 0.020 0.472 0.472 0.018 0.024 0.039 0.003 0 3.5 7 0.030 0.055 0.008 0.006 0.057 0.011 0.008
Min. Nom. Max.
1.60 0.05 1.35 0.17 0.09 10.00 10.00 0.50 12.00 12.00 0.45 0.60 1.00 0.08 0 3.5 7 0.75 1.40 0.20 0.15 1.45 0.27 0.20
A A1 A2 b c D E e HD HE L L1 y
- 90 -
W6691
Headquarters
No. 4, Creation Rd. III, Science-Based Industrial Park, Hsinchu, Taiwan TEL: 886-3-5770066 FAX: 886-3-5665577 http://www.winbond.com.tw/
Winbond Electronics Corporation America
2727 North First Street, San Jose, CA 95134, U.S.A. TEL: 1-408-9436666 FAX: 1-408-5441798
Winbond Electronics (Shanghai) Ltd.
27F, 2299 Yan An W. Rd. Shanghai, 200336 China TEL: 86-21-62365999 FAX: 86-21-62365998
Taipei Office
9F, No.480, Rueiguang Rd., Neihu District, Taipei, 114, Taiwan, R.O.C. TEL: 886-2-8177-7168 FAX: 886-2-8751-3579
Winbond Electronics Corporation Japan
7F Daini-ueno BLDG, 3-7-18 Shinyokohama Kohoku-ku, Yokohama, 222-0033 TEL: 81-45-4781881 FAX: 81-45-4781800
Winbond Electronics (H.K.) Ltd.
Unit 9-15, 22F, Millennium City, No. 378 Kwun Tong Rd., Kowloon, Hong Kong TEL: 852-27513100 FAX: 852-27552064
Please note that all data and specifications are subject to change without notice. All the trade marks of products and companies mentioned in this data sheet belong to their respective owners.
- 91 -
Publication Release Date: June 11, 2003 Revision 1.5


▲Up To Search▲   

 
Price & Availability of W6691

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X